Permalink
Browse files

correzzioni a seguito del controllo Lint4j

  • Loading branch information...
1 parent dfb42cf commit cd097c3e9449b63f73db08036f31bd72fcdf15fa Davide Valsecchi committed Aug 20, 2012
View
@@ -1,2 +1,3 @@
QuickAgenda/bin
-/.metadata
+/.metadata
+QuickAgenda/QuickAgenda_settings.xml
View
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><Lint4j><Audits><Audit id="J2SEGroup.audit1"/><Audit id="J2SEGroup.audit2"/><Audit id="J2SEGroup.audit4"/><Audit id="J2SEGroup.audit5"/><Audit id="J2SEGroup.audit6"/><Audit id="J2SEGroup.audit7"/><Audit id="J2SEGroup.audit8"/><Audit id="J2SEGroup.audit9"/><Audit id="J2SEGroup.audit10"/><Audit id="J2SEGroup.audit11"/><Audit id="J2SEGroup.audit12"/><Audit id="J2SEGroup.audit14"/><Audit id="J2SEGroup.audit16"/><Audit id="J2SEGroup.audit13"/><Audit id="SerializationGroup.audit1"/><Audit id="SerializationGroup.audit2"/><Audit id="SerializationGroup.audit3"/><Audit id="SerializationGroup.audit4"/><Audit id="SerializationGroup.audit5"/><Audit id="SerializationGroup.audit6"/><Audit id="SerializationGroup.audit7"/><Audit id="SerializationGroup.audit8"/><Audit id="SerializationGroup.audit9"/><Audit id="SerializationGroup.audit10"/><Audit id="SerializationGroup.audit11"/><Audit id="MaturityGroup.audit1"/><Audit id="MaturityGroup.audit2"/><Audit id="MaturityGroup.audit3"/><Audit id="MaturityGroup.audit4"/><Audit id="MaturityGroup.audit5"/><Audit id="MaturityGroup.audit6"/><Audit id="MaturityGroup.audit7"/><Audit id="MaturityGroup.audit8"/><Audit id="MaturityGroup.audit9"/><Audit id="MaturityGroup.audit11"/><Audit id="MaturityGroup.audit12"/><Audit id="MaturityGroup.audit13"/><Audit id="MaturityGroup.audit14"/><Audit id="MaturityGroup.audit15"/><Audit id="MaturityGroup.audit16"/><Audit id="MaturityGroup.audit17"/><Audit id="MaturityGroup.audit18"/><Audit id="MaturityGroup.audit19"/><Audit id="MaturityGroup.audit20"/><Audit id="MaturityGroup.audit21"/><Audit id="MaturityGroup.audit22"/><Audit id="MaturityGroup.audit23"/><Audit id="PerformanceGroup.audit1"/><Audit id="PerformanceGroup.audit2"/></Audits></Lint4j>
@@ -7,5 +7,6 @@
<path>C:\Users\Davide\Desktop\prova4.qad</path>
<path>C:\Users\Davide\Desktop\QuickAgenda\prova4.qad</path>
<path>C:\Users\Davide\Desktop\QuickAgenda\prova_finale.qad</path>
+ <path>C:\Users\Davide\Desktop\c.qad</path>
</data_path>
</settings>
@@ -18,7 +18,7 @@ public void run() {
StartWindow form = new StartWindow();
form.setVisible(true);
} catch (Exception e) {
- e.printStackTrace();
+ Log.error("errore apertura programma!\n"+ e.getMessage());
}
}
});
@@ -284,8 +284,8 @@ public static DataManager loadDataManager(String path, char[] password)
sessiondata = (GregorianCalendar) GregorianCalendar.getInstance();
sessiondata
.setTime(formatdata.parse(s.getChildText("sessiondata")));
- hours = Integer.parseInt("+" + s.getChildText("hours"));
- spesa = Integer.parseInt("+" + s.getChildText("spesa"));
+ hours = Integer.parseInt('+' + s.getChildText("hours"));
+ spesa = Integer.parseInt('+' + s.getChildText("spesa"));
note = s.getChildText("note");
// creazione della session
Session newSes = new Session(id, hash, workid, costumerid,
@@ -29,7 +29,7 @@
private String indirizzo;
private Calendar inizioLavori;
private Calendar fineLavori;
- private boolean completed = false;
+ private boolean completed;
/** Costruttore di Word */
public Work(String id, String costumerid, String _nome, String _indirizzo,
@@ -15,7 +15,7 @@
private static final long serialVersionUID = 5581183550670962768L;
private ElementType type;
private String ID;
- private Object object = null;
+ private Object object;
/**
* Costruttore che richiede il tipo di elemento, l'id e il messaggio
@@ -274,7 +274,7 @@ public void actionPerformed(ActionEvent arg0) {
// se la password c'è
if (txtPass.getPassword().length != 0) {
// allora si recupera la password e la path
- String path = (String) lblPath.getText();
+ String path = lblPath.getText();
// nuovo DataManager
try {
newData = DataManager.createVoidDataManager(path,
@@ -25,7 +25,6 @@
import java.awt.Font;
import java.util.ArrayList;
import java.util.Calendar;
-import java.util.GregorianCalendar;
import java.util.List;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;
@@ -105,9 +104,6 @@ private void initComponent() {
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
- // si ricavano i dati per la tabella
- AbstractTableModel model = this.getTableModel(GregorianCalendar
- .getInstance());
calendar = new JCalendar();
calendar.setTodayButtonVisible(true);
calendar.setTodayButtonText("Oggi");
@@ -390,7 +390,6 @@ public void actionPerformed(ActionEvent arg0) {
JFileChooser fc = new JFileChooser();
fc.setFileHidingEnabled(true);
fc.setFileFilter(new FileFilter() {
- private final String qad = "qad";
public boolean accept(File f) {
if (f.isDirectory()) {
@@ -1,7 +1,6 @@
package it.valsecchi.quickagenda.windows;
import it.valsecchi.quickagenda.data.DataManager;
-import it.valsecchi.quickagenda.data.Utility;
import it.valsecchi.quickagenda.data.component.ElementType;
import it.valsecchi.quickagenda.data.component.Work;
import it.valsecchi.quickagenda.data.component.exception.IDNotFoundException;
@@ -19,7 +18,6 @@
import javax.swing.JButton;
import java.awt.Font;
import java.text.ParseException;
-import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
@@ -437,7 +435,6 @@ public String getColumnName(int column) {
@Override
public Object getValueAt(int row, int column) {
- SimpleDateFormat f = new SimpleDateFormat("dd/MM/yy");
switch (column) {
case 0:
return lavori.get(row).getID();

0 comments on commit cd097c3

Please sign in to comment.