All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proguard.optimize.LineNumberTrimmer Maven / Gradle / Ivy

Go to download

ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode

There is a newer version: 7.6.0
Show newest version
/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2021 Guardsquare NV
 */

package proguard.optimize;

import proguard.AppView;
import proguard.classfile.attribute.visitor.AllAttributeVisitor;
import proguard.classfile.editor.LineNumberTableAttributeTrimmer;
import proguard.pass.Pass;

/**
 * Trims the line number table attributes of all program classes.
 *
 * @author Tim Van Den Broecke
 */
public class LineNumberTrimmer
implements Pass
{
    @Override
    public void execute(AppView appView)
    {
        appView.programClassPool.classesAccept(new AllAttributeVisitor(true,
                                                                       new LineNumberTableAttributeTrimmer()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy