-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
33 changed files
with
252 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ out/ | |
*.ipr | ||
*.iws | ||
*.DS_Store | ||
pipeblocker.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
common/src/main/java/info/mmpa/pipeblocker/java7/FilterSetter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package info.mmpa.pipeblocker.java7; | ||
|
||
import info.mmpa.pipeblocker.PipeBlocker; | ||
import sun.misc.ObjectInputFilter; | ||
|
||
public class FilterSetter { | ||
private static boolean applied = false; | ||
public static void apply() { | ||
if (!applied) { | ||
ObjectInputFilter.Config.setSerialFilter(new ObjectInputFilter() { | ||
@Override | ||
public Status checkInput(FilterInfo filterInfo) { | ||
switch (PipeBlocker.check(filterInfo.serialClass())) { | ||
case UNDECIDED: return ObjectInputFilter.Status.UNDECIDED; | ||
case ALLOWED: return ObjectInputFilter.Status.ALLOWED; | ||
case REJECTED: return ObjectInputFilter.Status.REJECTED; | ||
} | ||
throw new AssertionError("unknown check status"); | ||
} | ||
}); | ||
applied = true; | ||
} | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
common/src/main/java/info/mmpa/pipeblocker/java8/FilterSetter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
common/src/test/java/info/mmpa/pipeblocker/test/ObjectStreamTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cpw.mods.fml.common; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface Mod { | ||
String modid(); | ||
|
||
String name() default ""; | ||
|
||
String version() default ""; | ||
|
||
String acceptableRemoteVersions() default ""; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.METHOD) | ||
@interface EventHandler { | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
dummy/src/main/java/cpw/mods/fml/common/event/FMLInitializationEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package cpw.mods.fml.common.event; | ||
|
||
public class FMLInitializationEvent { | ||
public FMLInitializationEvent(Object... data) { | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
dummy/src/main/java/net/minecraft/launchwrapper/IClassTransformer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.minecraft.launchwrapper; | ||
|
||
public interface IClassTransformer { | ||
|
||
byte[] transform(String name, String transformedName, byte[] basicClass); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.