Advertisement
Guest User

Anonymous class stuff

a guest
Aug 14th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Should look like this (MCP)
  2. this.theReportCategory.addCrashSectionCallable("Minecraft Version", new Callable()
  3.     {
  4.         private static final String __OBFID = "CL_00001197";
  5.         public String call()
  6.         {
  7.             return "1.7.10";
  8.         }
  9. });
  10.  
  11. // Looks like this (Procyon)
  12. this.d.a("Minecraft Version", new c(this));
  13.  
  14. // Anonymous class
  15. import java.util.concurrent.*;
  16.  
  17. class c implements Callable
  18. {
  19.     final /* synthetic */ b a;
  20.    
  21.     c(final b a) {
  22.         this.a = a;
  23.         super();
  24.     }
  25.    
  26.     public String a() {
  27.         return "1.7.10";
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement