Skip to content

Commit 405b005

Browse files
committed
Remove trailing spaces from java files
find . -iname '*.java' -exec gsed -ri 's/\s+$//' '{}' ';'
1 parent af1e287 commit 405b005

File tree

275 files changed

+1969
-1970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+1969
-1970
lines changed

biojava-aa-prop/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</excludes>
3030
</configuration>
3131
</plugin>
32-
32+
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-assembly-plugin</artifactId>
@@ -46,7 +46,7 @@
4646
</descriptorRefs>
4747
<fileSets>
4848
<fileSet>
49-
<!-- TODO: use expresssions instead: ${project.build.sourceDirectory},
49+
<!-- TODO: use expresssions instead: ${project.build.sourceDirectory},
5050
etc -->
5151
<directory>${project.basedir}/src</directory>
5252
<useDefaultExcludes>true</useDefaultExcludes>
@@ -95,9 +95,9 @@
9595
<dependency>
9696
<groupId>org.apache.logging.log4j</groupId>
9797
<artifactId>log4j-core</artifactId>
98-
</dependency>
98+
</dependency>
99+
99100

100-
101101
<dependency>
102102
<groupId>junit</groupId>
103103
<artifactId>junit</artifactId>

biojava-aa-prop/src/main/java/org/biojava/nbio/aaproperties/AminoAcidProperties.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public class AminoAcidProperties {
3535
private static final Set<String> posChargedAAs = Stream.of("K", "R", "H").collect(Collectors.toSet());
3636
private static final Set<String> polarAAs = Stream.of("D", "E", "K", "R", "H", "N", "Q", "S", "T", "Y")
3737
.collect(Collectors.toSet());
38-
38+
3939
/**
40-
* At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
40+
* At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
4141
* and three are positive charged: lysine (Lys, K), arginine (Arg, R) and histidine (His, H) (basic side chains).
42-
*
43-
* @param aa The one-letter amino acid code
42+
*
43+
* @param aa The one-letter amino acid code
4444
* @return true if amino acid is charged
4545
*/
4646
public static final boolean isCharged(char aa) {
@@ -52,12 +52,12 @@ else if (posChargedAAs.contains(String.valueOf(aa))) {
5252
}
5353
return false;
5454
}
55-
55+
5656
/**
57-
* Returns the charge of amino acid. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
57+
* Returns the charge of amino acid. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
5858
* and three are positive charged: lysine (Lys, K), arginine (Arg, R) and histidine (His, H) (basic side chains).
59-
*
60-
* @param aa The one-letter amino acid code
59+
*
60+
* @param aa The one-letter amino acid code
6161
* @return the charge of amino acid (1 if positively charged, -1 if negatively charged, 0 if not charged)
6262
*/
6363
public static final int getChargeOfAminoAcid(char aa) {
@@ -69,11 +69,11 @@ else if (posChargedAAs.contains(String.valueOf(aa))) {
6969
}
7070
return 0;
7171
}
72-
72+
7373
/**
7474
* There are 10 amino acids: D, E, H, K, R, N, Q, S, T, Y, that are polar.
75-
*
76-
* @param aa The one-letter amino acid code
75+
*
76+
* @param aa The one-letter amino acid code
7777
* @return true if amino acid is polar
7878
*/
7979
public static final boolean isPolar(char aa) {
@@ -82,10 +82,10 @@ public static final boolean isPolar(char aa) {
8282
}
8383
return false;
8484
}
85-
85+
8686
/**
8787
* There are 10 amino acids: D, E, H, K, R, N, Q, S, T, Y, that are polar.
88-
*
88+
*
8989
* @param aa The one-letter amino acid code
9090
* @return the polarity of amino acid (1 if polar, 0 if not polar)
9191
*/

biojava-aa-prop/src/main/java/org/biojava/nbio/aaproperties/PeptideProperties.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,12 @@ public static final Map<Character, Double> getAACompositionChar(String sequence)
555555
}
556556
return aaChar2Composition;
557557
}
558-
558+
559559
/**
560-
* Returns the array of charges of each amino acid in a protein. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
560+
* Returns the array of charges of each amino acid in a protein. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
561561
* and three are positive charged: lysine (Lys, K), arginine (Arg, R) and histidine (His, H) (basic side chains).
562-
*
563-
* @param sequence
562+
*
563+
* @param sequence
564564
* a protein sequence consisting of non-ambiguous characters only
565565
* @return the array of charges of amino acids in the protein (1 if amino acid is positively charged, -1 if negatively charged, 0 if not charged)
566566
*/
@@ -572,15 +572,15 @@ public static final int[] getChargesOfAminoAcids(String sequence) {
572572
}
573573
return charges;
574574
}
575-
575+
576576
/**
577577
* Returns the array of polarity values of each amino acid in a protein sequence.
578-
*
579-
* @param sequence
580-
* a protein sequence consisting of non-ambiguous characters only
578+
*
579+
* @param sequence
580+
* a protein sequence consisting of non-ambiguous characters only
581581
* @return the array of polarity of amino acids in the protein (1 if amino acid is polar, 0 if not)
582582
*/
583-
public static final int[] getPolarityOfAminoAcids(String sequence) {
583+
public static final int[] getPolarityOfAminoAcids(String sequence) {
584584
int[] polarity = new int[sequence.length()];
585585
for ( int i=0; i < sequence.length(); i++ ) {
586586
char aa = sequence.toCharArray()[i];

biojava-alignment/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<build>
2525
<plugins>
2626

27-
<!-- Excluding demo package is required for avoiding namespace clashes
27+
<!-- Excluding demo package is required for avoiding namespace clashes
2828
(demo package is in all modules) for signing the jar. See issue #387 -->
2929
<plugin>
3030
<groupId>org.apache.maven.plugins</groupId>
@@ -35,7 +35,7 @@
3535
</excludes>
3636
</configuration>
3737
</plugin>
38-
38+
3939
</plugins>
4040
</build>
4141
<dependencies>
@@ -54,7 +54,7 @@
5454
<groupId>org.biojava.thirdparty</groupId>
5555
<artifactId>forester</artifactId>
5656
</dependency>
57-
<!-- logging dependencies (managed by parent pom, don't set versions or
57+
<!-- logging dependencies (managed by parent pom, don't set versions or
5858
scopes here) -->
5959
<dependency>
6060
<groupId>org.slf4j</groupId>

biojava-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<exclude>demo/**</exclude>
3535
</excludes>
3636
</configuration>
37-
</plugin>
38-
37+
</plugin>
38+
3939
</plugins>
4040
</build>
4141
<dependencies>

biojava-core/src/main/java/demo/ParseFastaFileDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public ParseFastaFileDemo(){
4444

4545
}
4646

47-
/**
47+
/**
4848
* e.g. download ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_trembl.fasta.gz
4949
* and pass in path to local location of file
5050
*

biojava-core/src/main/java/org/biojava/nbio/core/alignment/SimpleAlignedSequence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public int getNumGapPositions() {
442442

443443
@Override
444444
public double getCoverage() {
445-
445+
446446
double coverage = getLength() - getNumGapPositions();
447447
return coverage / getOriginalSequence().getLength();
448448
}

biojava-core/src/main/java/org/biojava/nbio/core/alignment/template/AlignedSequence.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ enum Step { COMPOUND, GAP }
9292
* @return number of gaps in the sequence
9393
*/
9494
int getNumGaps();
95-
95+
9696
/**
97-
* Returns number of gap positions (gap openings and extensions) in the sequence. This could be determined from the {@link Location}
97+
* Returns number of gap positions (gap openings and extensions) in the sequence. This could be determined from the {@link Location}
9898
* information or from gap {@link Compound}s, which may not necessarily result in the same number.
9999
*
100100
* @return number of gap positions in the sequence
101101
*/
102102
int getNumGapPositions();
103-
103+
104104
/**
105-
* Returns the coverage, as a fraction between 0 and 1, of this {@link AlignedSequence} with respect to the original sequence.
105+
* Returns the coverage, as a fraction between 0 and 1, of this {@link AlignedSequence} with respect to the original sequence.
106106
* This is equivalent to ({@link #getLength()} - {@link #getNumGapPositions()}) / getOriginalSequence().getLength().
107107
*
108108
* @return coverage of the original sequence by the aligned sequence

biojava-core/src/main/java/org/biojava/nbio/core/alignment/template/SequencePair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public interface SequencePair<S extends Sequence<C>, C extends Compound> extends
9696
* @return the number of identical indices
9797
*/
9898
int getNumIdenticals();
99-
99+
100100
/**
101101
* Returns the percentage of identity between the two sequences in the alignment as a fraction between 0 and 1.
102102
*

biojava-core/src/main/java/org/biojava/nbio/core/sequence/AccessionID.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void setVersion(Integer version) {
133133

134134
/**
135135
* In case if {@link #getID() } in not unique keeps the alternative id, eg. NCBI GI number.
136-
*
136+
*
137137
* This may null.
138138
*
139139
* @return

0 commit comments

Comments
 (0)