Import Order with static imports
c_inconnu2 <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, when using static import: import org.apache.commons.lang.builder.ToStringBuilder; import org.junit.Before; import org.junit.Test; import com.a.d.X import com.a.d.Y import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.sameInstance; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import static org.junit.matchers.StringContains.containsString; I got "Import Order Check: Wrong order for 'org.hamcrest.CoreMatchers.is' import." But according to the RFE 1198550, it should pass... "Actually, static is not ignored. The check currently expects that regular imports come first and static imports come after. Order within each block of imports is as before." So what am i doing wrong here ? Thanks David ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/