run repo through formatter

This commit is contained in:
Progwml6 committed 2014-02-05 09:11:06 -05:00
1 parent 5585d680a3
commit ffaea7d4b7
140 files changed
+1050 -892

No files matched your search

@@ -5,21 +5,27 @@ import cpw.mods.fml.common.asm.transformers.AccessTransformer;
import java.io.IOException;
import java.lang.reflect.Method;
public class AccessTransformers extends AccessTransformer {
public class AccessTransformers extends AccessTransformer
{
public AccessTransformers() throws IOException {
public AccessTransformers() throws IOException
{
super();
readMapFile("TConstruct_at.cfg");
}
private void readMapFile(String name) {
private void readMapFile (String name)
{
TConstructLoaderContainer.logger.info("[AT] Loading AT file: " + name);
try {
Method me = AccessTransformer.class.getDeclaredMethod("readMapFile", new Class[]{String.class});
try
{
Method me = AccessTransformer.class.getDeclaredMethod("readMapFile", new Class[] { String.class });
me.setAccessible(true);
me.invoke(this, name);
} catch (Exception ex) {
}
catch (Exception ex)
{
TConstructLoaderContainer.logger.error("[AT] Unknown failure occured: " + ex.getMessage());
ex.printStackTrace();
}
@@ -27,7 +27,7 @@ public class PropertyManager
public static final String propFileName = "TConPreloader.cfg";
private static String[] vars = new String[]{"preloaderContainer_verboseLog", "asmInterfaceRepair_verboseLog"};
private static String[] vars = new String[] { "preloaderContainer_verboseLog", "asmInterfaceRepair_verboseLog" };
public static boolean preloaderContainer_verboseLog = false;
public static boolean asmInterfaceRepair_verboseLog = false;
@@ -64,7 +64,8 @@ public class PropertyManager
{
throw new PropAccessException();
}
catch (NullPointerException ex) {
catch (NullPointerException ex)
{
TConstructLoaderContainer.logger.warn("Preloader config structure has changed; attempting to recreate.");
attemptCreate(fp, props);
}
@@ -78,13 +79,14 @@ public class PropertyManager
return false;
}
private static void attemptCreate(File fp, Properties props) throws PropAccessException {
private static void attemptCreate (File fp, Properties props) throws PropAccessException
{
// Attempt (re)creation
try
{
if (fp.exists())
fp.delete();
if (fp.createNewFile())
{
TConstructLoaderContainer.logger.info("Creating new properties file, as none found...");