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

src.samples.java.ex.NPMC_Sample Maven / Gradle / Ivy

Go to download

An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.

There is a newer version: 7.6.8
Show newest version
package ex;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class NPMC_Sample implements Cloneable {
    public void testToString() {
        StringBuilder sb = new StringBuilder();
        sb.append("hello").append("world").toString();
    }

    public void testXValue() {
        Integer i = Integer.valueOf(4);
        i.intValue();
        Long l = Long.valueOf(4);
        l.longValue();
        Double d = Double.valueOf(4);
        d.doubleValue();
        Float f = Float.valueOf(4);
        f.doubleValue();
    }

    public void testEquals(Object o) {
        equals(o);
    }

    public void testHashCode() {
        hashCode();
    }

    @Override
    public NPMC_Sample clone() {
        try {
            super.clone();

            return null;
        } catch (CloneNotSupportedException cnse) {
            throw new Error();
        }
    }

    public String[] testToArrayList() {
        List l = new ArrayList();
        l.toArray();
        Set s = new HashSet();
        s.toArray();

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy