Last active
March 10, 2017 14:03
-
-
Save GlebMaltsev/d71379f336162072d12273e08a811411 to your computer and use it in GitHub Desktop.
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
@SuppressWarnings("UnnecessaryLocalVariable") // Local variable to store meaning of condition | |
@Override | |
public boolean isSupportedFavorite() { | |
boolean isNotLibraryRootFileEntity = fileEntityStack != null | |
&& fileEntityStack.size() >= 1 | |
&& !fileEntityStack.peek().equals(library.getRootFileEntity()); | |
return isNotLibraryRootFileEntity; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment