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

src.samples.java.ex.OC_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.Collection;

@SuppressWarnings("all")
public class OC_Sample {
    private java.util.Date ud;

    public void castListInReg(Object o) {
        Collection c = (ArrayList) o;
    }

    public void castDateInField(Object o) {
        ud = (java.sql.Date) o;
    }

    public void fpFieldCast262() {
        Reference test = new Reference<>(null);
        test.value = (String) getObject();
    }

    public final class Reference {
        public T value;

        public Reference(T value) {
            this.value = value;
        }
    }

    public Object getObject() {
        return "string";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy