Changeset 663


Ignore:
Timestamp:
Apr 17, 2012, 9:48:37 AM (5 years ago)
Author:
rob.hooft@…
Message:
  • Split long lines (checkstyle)
Location:
trunk/code/conceptwiki/imports
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/code/conceptwiki/imports/imports-chemspider/src/main/java/nl/nbic/conceptwiki/imports/chemspider/ChemSpiderImport.java

    r661 r663  
    161161           
    162162            // check whether there already is an entry for this chemspider id
    163             final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
     163            final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(
     164                            String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
    164165            if (!chemspiderConcepts.isEmpty()) {
    165166                final Concept chemspiderConcept = chemspiderConcepts.get(0);
  • trunk/code/conceptwiki/imports/imports-chemspider/src/main/java/nl/nbic/conceptwiki/imports/chemspider/ChemSpiderImportChembl.java

    r661 r663  
    136136           
    137137            // check whether there already is an entry for this chemspider id
    138             final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
     138            final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(
     139                            String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
    139140            if (!chemspiderConcepts.isEmpty()) {
    140141                final Concept chemspiderConcept = chemspiderConcepts.get(0);
  • trunk/code/conceptwiki/imports/imports-chemspider/src/main/java/nl/nbic/conceptwiki/imports/chemspider/ChemSpiderImportDrugbank.java

    r661 r663  
    136136           
    137137            // check whether there already is an entry for this chemspider id
    138             final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
     138            final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(
     139                            String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
    139140            if (!chemspiderConcepts.isEmpty()) {
    140141                final Concept chemspiderConcept = chemspiderConcepts.get(0);
  • trunk/code/conceptwiki/imports/imports-chemspider/src/main/java/nl/nbic/conceptwiki/imports/chemspider/ChemSpiderImportMesh_fixingTags.java

    r662 r663  
    254254                        final Set<Concept> toBeAddedTags = Sets.newHashSet(superUMLSConcept);
    255255                       
    256                         final Changeset changeset = new ChangesetImpl().withRemove(new ActionImpl().withTags(toBeRemovedTags)).withAdd(new ActionImpl().withTags(toBeAddedTags));
     256                        final Changeset changeset = new ChangesetImpl().withRemove(
     257                                        new ActionImpl().withTags(toBeRemovedTags)).withAdd(
     258                                                        new ActionImpl().withTags(toBeAddedTags));
    257259                       
    258260                        final Transaction tx = graphTemplate.getGraphDb().beginTx();
     
    283285        final ApplicationContext ctx = new ClassPathXmlApplicationContext("/nl/nbic/conceptwiki/imports/import-chemspider-context.xml");
    284286       
    285         final ChemSpiderImportMesh_fixingTags chemSpiderImportMesh_fixingTags = (ChemSpiderImportMesh_fixingTags)ctx.getBean(ChemSpiderImportMesh_fixingTags.class);
     287        final ChemSpiderImportMesh_fixingTags chemSpiderImportMesh_fixingTags = (ChemSpiderImportMesh_fixingTags)ctx.getBean(
     288                                                                                        ChemSpiderImportMesh_fixingTags.class);
    286289       
    287290        chemSpiderImportMesh_fixingTags.loadMeSHToMultipleCUIsMapping();
  • trunk/code/conceptwiki/imports/imports-chemspider/src/main/java/nl/nbic/conceptwiki/imports/chemspider/ChemSpiderImportPdb.java

    r661 r663  
    135135           
    136136            // check whether there already is an entry for this chemspider id
    137             final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
     137            final List<Concept> chemspiderConcepts = conceptService.getConceptsByNotation(
     138                            String.valueOf(entry.csId), SCOPE.includeLabels(), 1, chemspiderBranch);
    138139            if (!chemspiderConcepts.isEmpty()) {
    139140                final Concept chemspiderConcept = chemspiderConcepts.get(0);
  • trunk/code/conceptwiki/imports/imports-common/src/main/java/nl/nbic/conceptwiki/imports/common/ConceptWikiConsumer.java

    r646 r663  
    6666                    existingConcept = mappingService.mapConcept(receivedConcept);
    6767                    if (existingConcept != null) {
    68                         conceptService.updateConcept(receivedConcept.getUuid(), conceptUtility.getDiff(existingConcept, receivedConcept), getBranch().getId());
     68                        conceptService.updateConcept(
     69                                        receivedConcept.getUuid(),
     70                                        conceptUtility.getDiff(existingConcept, receivedConcept), getBranch().getId());
    6971                    } else {
    7072                        conceptService.createConcept(receivedConcept, getBranch().getId());
Note: See TracChangeset for help on using the changeset viewer.