Search Results

Search found 2 results on 1 pages for 'user1064918'.

Page 1/1 | 1 

  • Coding style advice? [closed]

    - by user1064918
    I'm a newly grad. I've got a lot of complaints from my supervisor at work during code-review sessions with regard to my coding style (Surprise!). I don't know if it's just him being cranky or my style is really that annoying to read. I come from the low-level language world (assembly, mostly), so I've been taught to use bitwise ops and all the cool tricks to do math whenever possible. I also have the habits of doing some other things that've been regarded as "too excessively dense to read". So I'm hoping to get some feedback from any experienced programmers! :) Also how should I justify between code performance and readability? Thanks!!

    Read the article

  • Search for all instances of certain annotation type

    - by user1064918
    Suppose I have this annotation @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Name { String value(); } This is going to be used as follows @Name("name1") public static Foo foo = new Foo(); I have multiples of these across my project source files. Is there an fairly simple way to search and collect all those "foo"s that're preceded by @Name? In other words, I'd like to write a method that would return a Set<Foo> containing these. Thanks!!!

    Read the article

1