From 38ae8da593626dada448741ed816872691f02dc4 Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Fri, 30 Sep 2016 20:32:33 +0200
Subject: [PATCH] Fix code formatting (missing spaces after commas)

---
 .../javacheck/report/JavaCheckerReporter.java  |  6 +++---
 .../javacheck/util/ForgeCompatibility.java     | 18 +++++++++---------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main/java/chylex/javacheck/report/JavaCheckerReporter.java b/src/main/java/chylex/javacheck/report/JavaCheckerReporter.java
index 273d9db..d41b066 100644
--- a/src/main/java/chylex/javacheck/report/JavaCheckerReporter.java
+++ b/src/main/java/chylex/javacheck/report/JavaCheckerReporter.java
@@ -20,12 +20,12 @@ public final class JavaCheckerReporter{
 		}
 		
 		if (!GraphicsEnvironment.isHeadless() && ForgeCompatibility.isClientSide()){
-			displayErrorPopup("Outdated Java",getHtmlReport(minVersion));
+			displayErrorPopup("Outdated Java", getHtmlReport(minVersion));
 		}
 	}
 	
 	private static void displayErrorPopup(String title, String contents){
-		JEditorPane pane = new JEditorPane("text/html","<html><body style='font-family:Dialog;font-size:12;font-weight:bold'>"+contents+"</body></html>");
+		JEditorPane pane = new JEditorPane("text/html", "<html><body style='font-family:Dialog;font-size:12;font-weight:bold'>"+contents+"</body></html>");
 		pane.setBackground(new JLabel().getBackground());
 		pane.setEditable(false);
 		
@@ -42,7 +42,7 @@ public final class JavaCheckerReporter{
 			}
 		});
 		
-		JOptionPane.showMessageDialog(null,pane,title,JOptionPane.ERROR_MESSAGE);
+		JOptionPane.showMessageDialog(null, pane, title, JOptionPane.ERROR_MESSAGE);
 	}
 	
 	private static String getConsoleReport(JavaVersion minVersion){
diff --git a/src/main/java/chylex/javacheck/util/ForgeCompatibility.java b/src/main/java/chylex/javacheck/util/ForgeCompatibility.java
index cc88edd..4b36e86 100644
--- a/src/main/java/chylex/javacheck/util/ForgeCompatibility.java
+++ b/src/main/java/chylex/javacheck/util/ForgeCompatibility.java
@@ -7,18 +7,18 @@ import java.util.List;
 public final class ForgeCompatibility{
 	public static boolean tryLog(String data){
 		try{
-			org.apache.logging.log4j.LogManager.getLogger("JavaChecker").log(org.apache.logging.log4j.Level.ERROR,data);
+			org.apache.logging.log4j.LogManager.getLogger("JavaChecker").log(org.apache.logging.log4j.Level.ERROR, data);
 			return true;
 		}catch(Throwable t){ // apache logging is not available
 			t.printStackTrace();
 		}
 		
 		try{
-			Class relaunchLog = findFMLClass("relaunch","FMLRelaunchLog");
-			Method logSevere = findMethod(relaunchLog,"severe",String.class,Object[].class);
+			Class relaunchLog = findFMLClass("relaunch", "FMLRelaunchLog");
+			Method logSevere = findMethod(relaunchLog, "severe", String.class, Object[].class);
 			
 			if (logSevere != null){
-				logSevere.invoke(null,data,new Object[0]);
+				logSevere.invoke(null, data, new Object[0]);
 				return true;
 			}
 		}catch(Throwable t){ // relaunch log not available
@@ -30,9 +30,9 @@ public final class ForgeCompatibility{
 	
 	public static boolean tryResetModState(){
 		try{
-			Class cmm = findFMLClass("relauncher","CoreModManager");
-			Method getCoremods = findMethodAlt(cmm,new String[]{ "getLoadedCoremods", "getIgnoredMods" });
-			Method getReparsed = findMethodAlt(cmm,new String[]{ "getReparseableCoremods" });
+			Class cmm = findFMLClass("relauncher", "CoreModManager");
+			Method getCoremods = findMethodAlt(cmm, new String[]{ "getLoadedCoremods", "getIgnoredMods" });
+			Method getReparsed = findMethodAlt(cmm, new String[]{ "getReparseableCoremods" });
 			
 			if (getCoremods == null || getReparsed == null)return false;
 			
@@ -76,7 +76,7 @@ public final class ForgeCompatibility{
 		if (cls == null)return null;
 		
 		try{
-			return cls.getMethod(methodName,params);
+			return cls.getMethod(methodName, params);
 		}catch(NoSuchMethodException e){}
 		
 		return null;
@@ -87,7 +87,7 @@ public final class ForgeCompatibility{
 		
 		for(String methodName:methodNames){
 			try{
-				return cls.getMethod(methodName,params);
+				return cls.getMethod(methodName, params);
 			}catch(NoSuchMethodException e){}
 		}