File openproj-1.3-openjdk6-javac.patch of Package openproj
--- openproj_core/src/com/projity/configuration/ConfigurationReader.java
+++ openproj_core/src/com/projity/configuration/ConfigurationReader.java
@@ -102,11 +102,11 @@
try {
result = (ProvidesDigesterEvents) digester.parse(stream);
- } catch (IOException e1) {
+ } catch (RuntimeException e1) {
log.error("Could not read field xml configuration file.");
// TODO Auto-generated catch block
e1.printStackTrace();
- } catch (SAXException e1) {
+ } catch (Exception e1) {
log.error("Error parsing field xml configuration file");
// TODO Auto-generated catch block
e1.printStackTrace();
--- openproj_core/src/com/projity/configuration/FieldDictionaryFactory.java
+++ openproj_core/src/com/projity/configuration/FieldDictionaryFactory.java
@@ -56,7 +56,7 @@
* Factory that ensures that the digester uses a singleton instance of the Field Dictionary
*/
public class FieldDictionaryFactory extends AbstractObjectCreationFactory {
- public Object createObject(Attributes arg0) throws Exception {
+ public Object createObject(Attributes arg0) {
FieldDictionary fieldDictionary = Configuration.getInstance().getFieldDictionary();
if (fieldDictionary == null) // make it a singleton
fieldDictionary = new FieldDictionary();
--- openproj_core/src/com/projity/document/ObjectEvent.java
+++ openproj_core/src/com/projity/document/ObjectEvent.java
@@ -147,11 +147,11 @@
private static GenericObjectPool pool = new GenericObjectPool(new ObjectEventFactory());
private static class ObjectEventFactory extends BasePoolableObjectFactory {
- public Object makeObject() throws Exception {
+ public Object makeObject() {
return new ObjectEvent();
}
- public void activateObject(Object arg0) throws Exception {
+ public void activateObject(Object arg0) {
ObjectEvent objectEvent = (ObjectEvent)arg0;
objectEvent.reset();
--- openproj_core/src/com/projity/field/Field.java
+++ openproj_core/src/com/projity/field/Field.java
@@ -2017,9 +2017,7 @@
return null;
try {
return PropertyUtils.getProperty(obj, property);
- } catch (IllegalAccessException e) {
- } catch (InvocationTargetException e) {
- } catch (NoSuchMethodException e) {
+ } catch (RuntimeException e) {
}
return null;
@@ -2030,10 +2028,8 @@
return null;
try {
return PropertyUtils.getProperty(obj, referencedObjectProperty);
- } catch (IllegalAccessException e) {
- } catch (InvocationTargetException e) {
- } catch (NoSuchMethodException e) {
- }
+ } catch (RuntimeException e) {
+ }
return null;
}
@@ -2043,9 +2039,7 @@
try {
result = (Long) PropertyUtils.getProperty(obj, referencedIdProperty);
// System.out.println("____ref id = " + result);
- } catch (IllegalAccessException e) {
- } catch (InvocationTargetException e) {
- } catch (NoSuchMethodException e) {
+ } catch (RuntimeException e) {
}
}
return result;
@@ -2427,4 +2421,4 @@
}
-}
\ No newline at end of file
+}
--- openproj_core/src/com/projity/graphic/configuration/BarStylesFactory.java
+++ openproj_core/src/com/projity/graphic/configuration/BarStylesFactory.java
@@ -59,7 +59,7 @@
* Factory that ensures that the digester uses a singleton instance of the Bar Styles
*/
public class BarStylesFactory extends AbstractObjectCreationFactory {
- public Object createObject(Attributes att) throws Exception {
+ public Object createObject(Attributes att) {
String id = att.getValue("id");
String name = Messages.getString(id);
--- openproj_core/src/com/projity/grouping/core/transform/sorting/NodeSorter.java
+++ openproj_core/src/com/projity/grouping/core/transform/sorting/NodeSorter.java
@@ -164,11 +164,11 @@
private GenericObjectPool pool = new GenericObjectPool(new ListFactory());
private class ListFactory extends BasePoolableObjectFactory {
- public Object makeObject() throws Exception {
+ public Object makeObject() {
return new ArrayList();
}
- public void activateObject(Object arg0) throws Exception {
+ public void activateObject(Object arg0) {
// Stack stack = (Stack)arg0;
// stack.clear();
}
@@ -250,4 +250,4 @@
}
-}
\ No newline at end of file
+}
--- openproj_core/src/com/projity/pm/calendar/CalendarDefinition.java
+++ openproj_core/src/com/projity/pm/calendar/CalendarDefinition.java
@@ -346,8 +346,8 @@
*
*/ private static class CalendarIteratorFactory extends BasePoolableObjectFactory {
private static GenericObjectPool pool = new GenericObjectPool(new CalendarIteratorFactory());
- public Object makeObject() throws Exception {
- return new CalendarIterator();
+ public Object makeObject() {
+ return new CalendarIterator();
}
public static CalendarIterator getInstance() {
try {
--- openproj_core/src/com/projity/util/ClassUtils.java
+++ openproj_core/src/com/projity/util/ClassUtils.java
@@ -329,13 +329,7 @@
try {
PropertyUtils.setSimpleProperty(bean,name,value);
return true;
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
+ } catch (RuntimeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
--- openproj_core/src/com/projity/util/Factory.java
+++ openproj_core/src/com/projity/util/Factory.java
@@ -63,7 +63,7 @@
// for easy naming, the factory is named GregorianCalendarFactory
public static class GregorianCalendarPool extends BasePoolableObjectFactory {
private static GenericObjectPool pool = new GenericObjectPool(new GregorianCalendarPool());
- public Object makeObject() throws Exception {
+ public Object makeObject() {
return DateTime.calendarInstance();
}
public static GregorianCalendar getInstance() {
@@ -86,7 +86,7 @@
public static class DatePool extends BasePoolableObjectFactory {
private static GenericObjectPool pool = new GenericObjectPool(new DatePool());
- public Object makeObject() throws Exception {
+ public Object makeObject() {
return new Date();
}
--- openproj_ui/src/com/projity/dialog/ResourceMappingDialog.java
+++ openproj_ui/src/com/projity/dialog/ResourceMappingDialog.java
@@ -345,13 +345,7 @@
if (columnIndex==0){
try {
return BeanUtils.getProperty(form.getImportedResources().get(rowIndex),"name"); //$NON-NLS-1$
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
+ } catch (RuntimeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
--- openproj_ui/src/com/projity/pm/graphic/chart/ChartHelper.java
+++ openproj_ui/src/com/projity/pm/graphic/chart/ChartHelper.java
@@ -105,11 +105,11 @@
*/
public static JFreeChart createBarChart(final XYDataset dataset) {
ValueAxis domainAxis = null;
- NumberAxis axis = new NumberAxis(null);
+ NumberAxis axis = new NumberAxis();
axis.setAutoRangeIncludesZero(false);
domainAxis = axis;
- ValueAxis valueAxis = new NumberAxis(null);
+ ValueAxis valueAxis = new NumberAxis();
XYItemRenderer barRenderer = new XYStepAreaRenderer(XYStepAreaRenderer.AREA, new StandardXYToolTipGenerator(), null);
XYPlot plot = new XYPlot(dataset, domainAxis, valueAxis, barRenderer);
@@ -131,9 +131,9 @@
public static JFreeChart createLineChart(final XYDataset dataset) {
- NumberAxis xAxis = new NumberAxis(null);
+ NumberAxis xAxis = new NumberAxis();
xAxis.setAutoRangeIncludesZero(false);
- NumberAxis yAxis = new NumberAxis(null);
+ NumberAxis yAxis = new NumberAxis();
XYItemRenderer renderer = new StandardXYItemRenderer(StandardXYItemRenderer.LINES);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, renderer);
plot.setOrientation(PlotOrientation.VERTICAL);