From: Robin Rosenberg Date: Fri, 06 Jun 2008 00:22:57 GMT Subject: Re: [JGIT PATCH v3 06/23] Added the class FileNamePattern. Message-ID: <200806060222.57591.robin.rosenberg.lists@dewire.com> In-Reply-To: <1211574872-23676-7-git-send-email-florianskarten@web.de> > + public boolean match(String fileName, boolean fileIsDirectory) { > + if (matchDirectoriesOnly && !fileIsDirectory) { > + return false; > + } > + fileNameMatcher.resetStringToMatch(); Partially discusses before, but here is another aspect. One advantage with bracketless code is that you get an extra blank line for free. if (matchDirectoriesOnly && !fileIsDirectory) return false; fileNameMatcher.resetStringToMatch(); -- robin