Bug 82173 [5.0][typing] Angle Bracket<> auto closing should work in more situations
I20041221-0800 Angular Bracket auto closing does not work for a field type. In this example: void m() { HashMap hm= new HashMap(); ... ... an opening bracket < is - automatically closed when inserted between HashMap and () - not automatically closed when inserted between HashMap and hm. It should be closed in both cases.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
if ("break".equals(s)) 
					return TokenBREAK;
				if ("catch".equals(s)) 
					return TokenCATCH;
				if ("class".equals(s)) 
					return TokenCLASS;
				if ("while".equals(s)) 
					return TokenWHILE;
				break;
			case 6:
				if ("return".equals(s)) 
					return TokenRETURN;
				if ("static".equals(s)) 
					return TokenSTATIC;
				if ("switch".equals(s)) 
					return TokenSWITCH;
				break;
			case 7:
				if ("default".equals(s)) 
					return TokenDEFAULT;
				if ("finally".equals(s)) 
					return TokenFINALLY;
				break;
			case 9:
				if ("interface".equals(s)) 
					return TokenINTERFACE;
				break;
			case 12:
				if ("synchronized".equals(s)) 
					return TokenSYNCHRONIZED;