/[projects]/dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/Database.java
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/Database.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2883 by torben, Sat Jan 30 14:17:27 2016 UTC revision 2884 by torben, Sat Jan 30 19:17:09 2016 UTC
# Line 18  import java.util.logging.Logger; Line 18  import java.util.logging.Logger;
18    
19  import dk.daoas.adressevedligehold.beans.Address;  import dk.daoas.adressevedligehold.beans.Address;
20  import dk.daoas.adressevedligehold.util.DeduplicateHelper;  import dk.daoas.adressevedligehold.util.DeduplicateHelper;
21    import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
22    
23    
24    
# Line 72  public class Database { Line 73  public class Database {
73                  }                  }
74          }                }      
75                    
76            @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE")
77          public void renameResultTables() throws SQLException {          public void renameResultTables() throws SQLException {
78                  if (AfstandAndenRuteTask.test_mode == true) {                  if (AfstandAndenRuteTask.test_mode == true) {
79                          throw new RuntimeException("Can not rename tables in test mode");                          throw new RuntimeException("Can not rename tables in test mode");
# Line 99  public class Database { Line 101  public class Database {
101                    
102          public BoundingBox getBoundingbox(short postnr)  {          public BoundingBox getBoundingbox(short postnr)  {
103                  BoundingBox bb = bbCache.get(postnr);                  BoundingBox bb = bbCache.get(postnr);
104                  return bb.clone();//never return the original / cached object                  return new BoundingBox(bb); //never return the original / cached object
105          }          }
106                    
107                    

Legend:
Removed from v.2883  
changed lines
  Added in v.2884

  ViewVC Help
Powered by ViewVC 1.1.20