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

src.samples.java.ex.UP_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.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class UP_Sample implements Serializable {

    private int testUP1(int x, double d, float f, char c) {
        if (f == 0f) {
            return x;
        }

        return 0;
    }

    public static int testUP2(int x, double d, float f, char c) {
        if (f == 0f) {
            return x;
        }

        return 0;
    }

    public int fpTestUP3(int x, double d, float f, char c) {
        if (f == 0f) {
            return x;
        }

        return 0;
    }

    public UP_Sample(int x, double d, float f, char c) {
        if (f == 0f) {
            x = 1;
        }

        c += x;
    }

    private void readObject(ObjectInputStream in) {

    }

    private void writeObject(ObjectOutputStream out) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy