forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix whitespace issues throughout the code (mockito#928)
* Add missing newlines at the end of source files At the time this patch was authored, 252 (~31%) source files in the project did not end with a newline, while 555 (~69%) did. This patch takes the de-facto standard of having a newline at the end of a file and applies it to all the source files in the project. Besides improving standardization, another contributing consideration is the fact that many editors/IDEs add newlines at the end of files. Using such an IDE will add a newline to the edited file, adding "noise" to the patch and confusing potential reviewers. By explicitly adding all the missing newlines in a single patch, this problem can be avoided. These changes were done automatically by applying the following shell command: $ find . -name "*.java" -exec sed -i -e '$a\' {} \; * Remove whitespaces at the end of source lines This patch takes the de-facto standard of not having any whitespaces at the end of source lines and applies it to all the source files in the project. Besides improving standardization, another contributing consideration is the fact that many editors/IDEs remove such whitespaces at end of lines. Using such an IDE will remove these whitespaces in the edited file, adding "noise" to the patch and confusing potential reviewers. By explicitly removing all of them in a single patch, this problem can be avoided. These changes were done automatically by applying the following shell command: $ find . -name "*.java" -exec sed -i 's/[ \t]*$//' {} \;
- Loading branch information
1 parent
c73c7a0
commit e9516f4
Showing
388 changed files
with
2,051 additions
and
1,944 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,6 @@ | |
String name() default ""; | ||
|
||
Class<?>[] extraInterfaces() default {}; | ||
|
||
boolean serializable() default false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ public interface MockitoDebugger { | |
*/ | ||
@Deprecated | ||
String printInvocations(Object ... mocks); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.