Patent ID: 8650537
Filing Date: 2014-02-11
Classification: G06F

Abstract:
1. A computer-implemented method for optimizing an object-oriented program including a plurality of classes and inner classes each having a plurality of members, the method comprising: identifying synthetic accessor methods added to the program during a compilation to allow access to the members of the inner classes by the classes and members outside the inner classes; and replacing the synthetic accessor methods with direct accesses to the members of the inner classes, wherein at least one synthetic accessor method invokes private method and the replacing comprises: designating the private method as a package-private method; and replacing an invocation of said at least one synthetic accessor method by an invocation of the package-private method, and wherein a class member that is declared as private is only accessible from within the class itself, and a class member that is declared as package-private is only accessible from within the class itself, and the classes that belong to the same package.