Changeset 1749


Ignore:
Timestamp:
Nov 28, 2012, 8:05:04 AM (9 years ago)
Author:
olle
Message:

Refs #434. Compiler warnings removed. Either by adding @SuppressWarnings?() annotations for "unchecked" and "rawtypes", or commenting out unused variables, kept in code for future use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/SampleReportServlet.java

    r1748 r1749  
    212212  }
    213213 
     214  @SuppressWarnings("unchecked")
    214215  private JSONObject createSampleCountReport(DbControl dc, JSONObject json, Date startDate, Date endDate, String viewType, String sampleType)
    215216    throws ServletException, IOException
     
    265266  }
    266267   
     268  @SuppressWarnings({ "unchecked", "rawtypes" })
    267269  private JSONObject createPatientCountReport(DbControl dc, JSONObject json, Date startDate, Date endDate, String viewType)
    268270    throws ServletException, IOException
     
    377379  }
    378380   
     381  @SuppressWarnings({ "unchecked", "rawtypes" })
    379382  private JSONObject createConsentCountReport(DbControl dc, JSONObject json, Date startDate, Date endDate)
    380383      throws ServletException, IOException
     
    459462    {
    460463      Sample s = sampleIterator.next();
     464/*
    461465      BioMaterialEvent creationEvent = s.getCreationEvent();
    462466      Date creationDate = creationEvent.getEventDate();
     467*/
    463468             
    464469      Site site = Site.findByCaseName(s.getName());
     
    659664  }
    660665
     666  @SuppressWarnings({ "unchecked", "rawtypes" })
    661667  private JSONObject updateJSONItemnameItemid(JSONObject jsonObject, BioMaterial item)
    662668  {
     
    751757  }
    752758
     759  @SuppressWarnings("unchecked")
    753760  private JSONObject createJSONPatientsWithMultipleDates(HashMap<String, Set<Date>> stringDateSetHashMap)
    754761  {
     
    785792  }
    786793
     794  @SuppressWarnings("unchecked")
    787795  private JSONObject createJSONStatistics(Iterator<Sample> sampleIterator, Date startDate, Date endDate, String viewType)
    788796    throws ServletException, IOException
     
    885893  }
    886894     
     895  @SuppressWarnings("unchecked")
    887896  private JSONObject updateJSONObjectCounter(JSONObject jsonObject, String key)
    888897  {
     
    898907  }
    899908
     909  @SuppressWarnings("unchecked")
    900910  private JSONObject initializeJSONSiteData(JSONObject jsonSiteContainerObject, String key)
    901911  {
     
    919929  }
    920930
     931  @SuppressWarnings("unchecked")
    921932  private JSONObject initializeJSONPeriodData(JSONObject jsonObject, Date startDate, Date endDate, Date dataStartDate, String viewType)
    922933  {
     
    951962   *  @return String A JSONObject with sort index as key and site prefix as value.
    952963   */
     964  @SuppressWarnings("unchecked")
    953965  private JSONObject createJSONSiteOrderList(String order)
    954966  {
     
    969981   *  @return List<String> list of site name prefixes sorted after specified order.
    970982   */
     983  @SuppressWarnings("rawtypes")
    971984  private List<String> createSiteOrderedList(String order)
    972985  {
     
    11081121  }
    11091122
     1123  @SuppressWarnings("unused")
    11101124  private List<Date> createSortedPeriodStartDateList(Date startDate, Date endDate, String viewType)
    11111125  {
Note: See TracChangeset for help on using the changeset viewer.