Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327341 - Static Fields should be made Final
Summary: Static Fields should be made Final
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: David Carver CLA
QA Contact: Jesper Moller CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 10:25 EDT by David Carver CLA
Modified: 2011-04-25 11:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2010-10-08 10:25:57 EDT
FindBugs is reporting a couple of potential issues:

org.eclipse.wst.xml.xpath2.processor.PsychoPathTypeHelper.DAYTIMEDURATION_DT isn't final but should be

A mutable static field could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability.

org.eclipse.wst.xml.xpath2.processor.PsychoPathTypeHelper.YEARMONTHDURATION_DT isn't final but should be

A mutable static field could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability.

I'll make a fix for this.