Finally use Java7 <>

This commit is contained in:
yueh
2017-07-20 21:21:45 +02:00
parent 8ec8babb6a
commit 7de90ed0ae
145 changed files with 315 additions and 315 deletions
+4 -4
View File
@@ -36,8 +36,8 @@ import appeng.core.AELog;
public class NetworkEventBus
{
private static final Collection<Class> READ_CLASSES = new HashSet<Class>();
private static final Map<Class<? extends MENetworkEvent>, Map<Class, MENetworkEventInfo>> EVENTS = new HashMap<Class<? extends MENetworkEvent>, Map<Class, MENetworkEventInfo>>();
private static final Collection<Class> READ_CLASSES = new HashSet<>();
private static final Map<Class<? extends MENetworkEvent>, Map<Class, MENetworkEventInfo>> EVENTS = new HashMap<>();
void readClass( final Class listAs, final Class c )
{
@@ -63,7 +63,7 @@ public class NetworkEventBus
Map<Class, MENetworkEventInfo> classEvents = EVENTS.get( types[0] );
if( classEvents == null )
{
EVENTS.put( types[0], classEvents = new HashMap<Class, MENetworkEventInfo>() );
EVENTS.put( types[0], classEvents = new HashMap<>() );
}
MENetworkEventInfo thisEvent = classEvents.get( listAs );
@@ -201,7 +201,7 @@ public class NetworkEventBus
private class MENetworkEventInfo
{
private final List<EventMethod> methods = new ArrayList<EventMethod>();
private final List<EventMethod> methods = new ArrayList<>();
private void Add( final Class Event, final Class ObjClass, final Method ObjMethod )
{