~ubuntu-branches/ubuntu/wily/proguard/wily-proposed

« back to all changes in this revision

Viewing changes to src/proguard/optimize/evaluation/SimpleEnumUseSimplifier.java

  • Committer: Package Import Robot
  • Author(s): komal Sukhani
  • Date: 2015-08-31 14:45:54 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20150831144554-v4gb9hzo8xldfky9
Tags: 5.2.1-1
* Team upload
* New upstream release
* Add new patches
  - correct_properties_file_path
  - enable_building_of_gradle_task
* Add gradle package in build depends
* d/control: Switch Vcs-Browser field to cgit

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
3
3
 *             of Java bytecode.
4
4
 *
5
 
 * Copyright (c) 2002-2014 Eric Lafortune (eric@graphics.cornell.edu)
 
5
 * Copyright (c) 2002-2015 Eric Lafortune @ GuardSquare
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify it
8
8
 * under the terms of the GNU General Public License as published by the Free
483
483
 
484
484
            if (referencedClasses != null)
485
485
            {
486
 
                int returnedClassIndex =
487
 
                    new DescriptorClassEnumeration(descriptor).classCount() - 1;
488
 
 
489
 
                Clazz returnedClass = referencedClasses[returnedClassIndex];
 
486
                Clazz returnedClass =
 
487
                    referencedClasses[referencedClasses.length - 1];
490
488
 
491
489
                return isSimpleEnum(returnedClass);
492
490
            }