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

src.samples.java.ex.SCSS_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.Map;
import java.util.Set;

import javax.servlet.http.HttpSession;

@SuppressWarnings("all")
public class SCSS_Sample {
    public void setChange(HttpSession session) {
        Set ss = (Set) session.getAttribute("mykeys");
        ss.add("Foo");
    }

    public void arrayChange(HttpSession session) {
        double[] d = (double[]) session.getAttribute("mynums");
        d[3] = 0.0;
    }

    public void ok(HttpSession session) {
        Map mm = (Map) session.getAttribute("mymapping");
        mm.put("foo", "bar");
        session.setAttribute("mymapping", mm);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy