~ubuntu-branches/ubuntu/saucy/proguard/saucy

« back to all changes in this revision

Viewing changes to src/proguard/obfuscate/MemberSpecialNameFilter.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-06-06 21:43:59 UTC
  • mfrom: (7.1.1 quantal)
  • Revision ID: package-import@ubuntu.com-20130606214359-anr49am8ewoj0taa
Tags: 4.8-0.1
* Non-maintainer upload.
* New upstream release. (Closes: #678049, #643255)
* Sync changes from Ubuntu packaging.
  - Thank you to Sebastian Carneiro.
* Bump Standards-Version to 3.9.4.

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-2009 Eric Lafortune (eric@graphics.cornell.edu)
 
5
 * Copyright (c) 2002-2012 Eric Lafortune (eric@graphics.cornell.edu)
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
54
54
 
55
55
    public void visitProgramField(ProgramClass programClass, ProgramField programField)
56
56
    {
57
 
        if (isSpecialName(programField))
 
57
        if (hasSpecialName(programField))
58
58
        {
59
59
            memberVisitor.visitProgramField(programClass, programField);
60
60
        }
63
63
 
64
64
    public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
65
65
    {
66
 
        if (isSpecialName(programMethod))
 
66
        if (hasSpecialName(programMethod))
67
67
        {
68
68
            memberVisitor.visitProgramMethod(programClass, programMethod);
69
69
        }
72
72
 
73
73
    public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
74
74
    {
75
 
        if (isSpecialName(libraryField))
 
75
        if (hasSpecialName(libraryField))
76
76
        {
77
77
            memberVisitor.visitLibraryField(libraryClass, libraryField);
78
78
        }
81
81
 
82
82
    public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
83
83
    {
84
 
        if (isSpecialName(libraryMethod))
 
84
        if (hasSpecialName(libraryMethod))
85
85
        {
86
86
            memberVisitor.visitLibraryMethod(libraryClass, libraryMethod);
87
87
        }
94
94
     * Returns whether the given class member has a special new name.
95
95
     * @param member the class member.
96
96
     */
97
 
    private static boolean isSpecialName(Member member)
 
97
    private static boolean hasSpecialName(Member member)
98
98
    {
99
99
        return SpecialNameFactory.isSpecialName(MemberObfuscator.newMemberName(member));
100
100
    }