src.samples.java.ex.SCSS_Sample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fb-contrib Show documentation
Show all versions of fb-contrib Show documentation
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.
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);
}
}