MemberCounter methodPropagationParameterCounter = new MemberCounter(); MemberCounter methodPropagationReturnvalueCounter = new MemberCounter(); InstructionCounter methodInliningShortCounter = new InstructionCounter(); InstructionCounter methodInliningUniqueCounter = new InstructionCounter(); InstructionCounter methodInliningTailrecursionCounter = new InstructionCounter(); InstructionCounter codeMergingCounter = new InstructionCounter(); InstructionCounter codeSimplificationVariableCounter = new InstructionCounter(); InstructionCounter codeSimplificationArithmeticCounter = new InstructionCounter(); InstructionCounter codeSimplificationCastCounter = new InstructionCounter(); InstructionCounter codeSimplificationFieldCounter = new InstructionCounter(); InstructionCounter codeSimplificationBranchCounter = new InstructionCounter(); InstructionCounter codeSimplificationAdvancedCounter = new InstructionCounter(); InstructionCounter deletedCounter = new InstructionCounter(); InstructionCounter addedCounter = new InstructionCounter(); MemberCounter codeRemovalVariableCounter = new MemberCounter(); ExceptionCounter codeRemovalExceptionCounter = new ExceptionCounter(); int methodPropagationParameterCount = methodPropagationParameterCounter .getCount(); int methodPropagationReturnvalueCount = methodPropagationReturnvalueCounter.getCount(); int methodInliningShortCount = methodInliningShortCounter .getCount(); int methodInliningUniqueCount = methodInliningUniqueCounter .getCount(); int methodInliningTailrecursionCount = methodInliningTailrecursionCounter .getCount(); int codeMergingCount = codeMergingCounter .getCount(); int codeSimplificationVariableCount = codeSimplificationVariableCounter .getCount(); int codeSimplificationArithmeticCount = codeSimplificationArithmeticCounter.getCount(); int codeSimplificationCastCount = codeSimplificationCastCounter .getCount(); int codeSimplificationFieldCount = codeSimplificationFieldCounter .getCount(); int codeSimplificationBranchCount = codeSimplificationBranchCounter .getCount(); int codeSimplificationAdvancedCount = codeSimplificationAdvancedCounter .getCount();
libraryClassPool.classesAccept(new ClassCleaner()); final InstructionCounter replacedStringConcatCounter = new InstructionCounter(); final ClassCounter lambdaExpressionCounter = new ClassCounter(); final MemberCounter staticInterfaceMethodCounter = new MemberCounter(); final MemberCounter defaultInterfaceMethodCounter = new MemberCounter(); final InstructionCounter replacedMethodCallCounter = new InstructionCounter(); System.out.println(" Number of converted string concatenations: " + replacedStringConcatCounter.getCount()); System.out.println(" Number of converted lambda expressions: " + lambdaExpressionCounter.getCount()); System.out.println(" Number of converted static interface methods: " + staticInterfaceMethodCounter.getCount()); System.out.println(" Number of converted default interface methods: " + defaultInterfaceMethodCounter.getCount()); System.out.println(" Number of replaced Java 7+ method calls: " + replacedMethodCallCounter.getCount());
libraryClassPool.classesAccept(new ClassCleaner()); final InstructionCounter replacedStringConcatCounter = new InstructionCounter(); final ClassCounter lambdaExpressionCounter = new ClassCounter(); final MemberCounter staticInterfaceMethodCounter = new MemberCounter(); final MemberCounter defaultInterfaceMethodCounter = new MemberCounter(); final InstructionCounter replacedMethodCallCounter = new InstructionCounter(); System.out.println(" Number of converted string concatenations: " + replacedStringConcatCounter.getCount()); System.out.println(" Number of converted lambda expressions: " + lambdaExpressionCounter.getCount()); System.out.println(" Number of converted static interface methods: " + staticInterfaceMethodCounter.getCount()); System.out.println(" Number of converted default interface methods: " + defaultInterfaceMethodCounter.getCount()); System.out.println(" Number of replaced Java 7+ method calls: " + replacedMethodCallCounter.getCount());
libraryClassPool.classesAccept(new ClassCleaner()); final InstructionCounter replacedStringConcatCounter = new InstructionCounter(); final ClassCounter lambdaExpressionCounter = new ClassCounter(); final MemberCounter staticInterfaceMethodCounter = new MemberCounter(); final MemberCounter defaultInterfaceMethodCounter = new MemberCounter(); final InstructionCounter replacedMethodCallCounter = new InstructionCounter(); System.out.println(" Number of converted string concatenations: " + replacedStringConcatCounter.getCount()); System.out.println(" Number of converted lambda expressions: " + lambdaExpressionCounter.getCount()); System.out.println(" Number of converted static interface methods: " + staticInterfaceMethodCounter.getCount()); System.out.println(" Number of converted default interface methods: " + defaultInterfaceMethodCounter.getCount()); System.out.println(" Number of replaced Java 7+ method calls: " + replacedMethodCallCounter.getCount());
final MemberCounter methodPropagationParameterCounter = new MemberCounter(); final MemberCounter methodPropagationReturnvalueCounter = new MemberCounter(); final InstructionCounter methodInliningShortCounter = new InstructionCounter(); final InstructionCounter methodInliningUniqueCounter = new InstructionCounter(); final InstructionCounter methodInliningTailrecursionCounter = new InstructionCounter(); final InstructionCounter codeMergingCounter = new InstructionCounter(); final InstructionCounter codeSimplificationVariableCounter = new InstructionCounter(); final InstructionCounter codeSimplificationArithmeticCounter = new InstructionCounter(); final InstructionCounter codeSimplificationCastCounter = new InstructionCounter(); final InstructionCounter codeSimplificationFieldCounter = new InstructionCounter(); final InstructionCounter codeSimplificationBranchCounter = new InstructionCounter(); final InstructionCounter codeSimplificationObjectCounter = new InstructionCounter(); final InstructionCounter codeSimplificationStringCounter = new InstructionCounter(); final InstructionCounter codeSimplificationMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAndroidMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAdvancedCounter = new InstructionCounter(); final InstructionCounter deletedCounter = new InstructionCounter(); final InstructionCounter addedCounter = new InstructionCounter(); final MemberCounter codeRemovalVariableCounter = new MemberCounter(); final ExceptionCounter codeRemovalExceptionCounter = new ExceptionCounter(); if ((methodInliningUniqueCounter .getCount() > 0 || methodInliningShortCounter .getCount() > 0 || methodInliningTailrecursionCounter.getCount() > 0) && configuration.allowAccessModification) classMergingWrapperCounter .getCount() > 0 || methodMarkingPrivateCounter .getCount() > 0 || ((methodInliningUniqueCounter .getCount() > 0 ||
final MemberCounter methodPropagationParameterCounter = new MemberCounter(); final MemberCounter methodPropagationReturnvalueCounter = new MemberCounter(); final InstructionCounter methodInliningShortCounter = new InstructionCounter(); final InstructionCounter methodInliningUniqueCounter = new InstructionCounter(); final InstructionCounter methodInliningTailrecursionCounter = new InstructionCounter(); final InstructionCounter codeMergingCounter = new InstructionCounter(); final InstructionCounter codeSimplificationVariableCounter = new InstructionCounter(); final InstructionCounter codeSimplificationArithmeticCounter = new InstructionCounter(); final InstructionCounter codeSimplificationCastCounter = new InstructionCounter(); final InstructionCounter codeSimplificationFieldCounter = new InstructionCounter(); final InstructionCounter codeSimplificationBranchCounter = new InstructionCounter(); final InstructionCounter codeSimplificationObjectCounter = new InstructionCounter(); final InstructionCounter codeSimplificationStringCounter = new InstructionCounter(); final InstructionCounter codeSimplificationMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAndroidMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAdvancedCounter = new InstructionCounter(); final InstructionCounter deletedCounter = new InstructionCounter(); final InstructionCounter addedCounter = new InstructionCounter(); final MemberCounter codeRemovalVariableCounter = new MemberCounter(); final ExceptionCounter codeRemovalExceptionCounter = new ExceptionCounter(); if ((methodInliningUniqueCounter .getCount() > 0 || methodInliningShortCounter .getCount() > 0 || methodInliningTailrecursionCounter.getCount() > 0) && configuration.allowAccessModification) classMergingWrapperCounter .getCount() > 0 || methodMarkingPrivateCounter .getCount() > 0 || ((methodInliningUniqueCounter .getCount() > 0 ||
final MemberCounter methodPropagationParameterCounter = new MemberCounter(); final MemberCounter methodPropagationReturnvalueCounter = new MemberCounter(); final InstructionCounter methodInliningShortCounter = new InstructionCounter(); final InstructionCounter methodInliningUniqueCounter = new InstructionCounter(); final InstructionCounter methodInliningTailrecursionCounter = new InstructionCounter(); final InstructionCounter codeMergingCounter = new InstructionCounter(); final InstructionCounter codeSimplificationVariableCounter = new InstructionCounter(); final InstructionCounter codeSimplificationArithmeticCounter = new InstructionCounter(); final InstructionCounter codeSimplificationCastCounter = new InstructionCounter(); final InstructionCounter codeSimplificationFieldCounter = new InstructionCounter(); final InstructionCounter codeSimplificationBranchCounter = new InstructionCounter(); final InstructionCounter codeSimplificationObjectCounter = new InstructionCounter(); final InstructionCounter codeSimplificationStringCounter = new InstructionCounter(); final InstructionCounter codeSimplificationMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAndroidMathCounter = new InstructionCounter(); final InstructionCounter codeSimplificationAdvancedCounter = new InstructionCounter(); final InstructionCounter deletedCounter = new InstructionCounter(); final InstructionCounter addedCounter = new InstructionCounter(); final MemberCounter codeRemovalVariableCounter = new MemberCounter(); final ExceptionCounter codeRemovalExceptionCounter = new ExceptionCounter(); if ((methodInliningUniqueCounter .getCount() > 0 || methodInliningShortCounter .getCount() > 0 || methodInliningTailrecursionCounter.getCount() > 0) && configuration.allowAccessModification) classMergingWrapperCounter .getCount() > 0 || methodMarkingPrivateCounter .getCount() > 0 || ((methodInliningUniqueCounter .getCount() > 0 ||