Skip to content

Minor code tidy-up#83

Merged
pjdarton merged 3 commits intojenkinsci:masterfrom
pjdarton:tidyup
Aug 3, 2017
Merged

Minor code tidy-up#83
pjdarton merged 3 commits intojenkinsci:masterfrom
pjdarton:tidyup

Conversation

@pjdarton
Copy link
Copy Markdown
Member

@pjdarton pjdarton commented Aug 3, 2017

Some Java files use a mix of tabs and spaces, which makes it almost impossible for contributors to "fit in" with the existing code style (as there isn't one). This PR goes some way to making these self-consistent by turning tabs to spaces in Java files that used both. Files which used tabs throughout have not been modified.
Some Java files had unused import statements which caused warnings in my IDE.
One file had an unused local variable.

pom.xml, Deploy.java, ReconfigureNetworkAdapters.java, VSphere.java,
VSphereLogger.java used an inconsistent mix of tabs and spaces for
indentation - they now use spaces (four per level of indentation).
VSphere.java also had a few places where braces were "on the next line"
instead of "at end of line".
Removed unused import statements from Clone.java, Delete.java,
Deploy.java, PowerOff.java, ReconfigureCpu.java, ReconfigureMemory.java,
VSphere.java and vSphereCloudSlaveTemplate.java.
Code was casting AbstractFolderProperty to FolderVSphereCloudProperty
and then ignoring the result, repeating the cast on the next line.
It now uses the result of the first cast instead of doing it twice and
leaving the variable unread.
@pjdarton pjdarton merged commit 2a11b2a into jenkinsci:master Aug 3, 2017
@pjdarton pjdarton deleted the tidyup branch August 3, 2017 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant