Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 245529 Details for
Bug 440778
[formatter] Adding line comment trips up code indentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
The same formatting examples, but without the line wrapping
indentation-bug.txt (text/plain), 2.11 KB, created by
Luke Hutchison
on 2014-07-30 09:39:18 EDT
(
hide
)
Description:
The same formatting examples, but without the line wrapping
Filename:
MIME Type:
Creator:
Luke Hutchison
Created:
2014-07-30 09:39:18 EDT
Size:
2.11 KB
patch
obsolete
> > > >Without comment: > > > @SuppressWarnings("unchecked") > public <T> ClasspathScanner addSubclassMatcher(final Class<T> superclass, final ClassMatchProcessor<T> classMatchProcessor) { > classMatchers.add(() -> { > ClassInfo superclassInfo = classNameToClassInfo.get(superclass.getName()); > boolean foundMatches = false; > if (superclassInfo != null) { > for (ClassInfo subclassInfo : superclassInfo.allSubclasses) { > try { > Class<? extends T> klass = (Class<? extends T>) Class.forName(subclassInfo.name); > classMatchProcessor.processMatch(klass); > foundMatches = true; > } catch (ClassNotFoundException | NoClassDefFoundError e) { > throw new RuntimeException(e); > } > } > } > if (!foundMatches) { > // TODO: Log.i("No classes found with superclass " + superclass.getName()); > } > }); > return this; > } > > > >With comment: > > > @SuppressWarnings("unchecked") > public <T> ClasspathScanner addSubclassMatcher2(final Class<T> superclass, final ClassMatchProcessor<T> classMatchProcessor) { > classMatchers.add(() -> { > ClassInfo superclassInfo = classNameToClassInfo.get(superclass.getName()); > boolean foundMatches = false; > if (superclassInfo != null) { > for (ClassInfo subclassInfo : superclassInfo.allSubclasses) { > try { > // Only now do we call the classloader (Class.forName()), it is slow > Class<? extends T> klass = (Class<? extends T>) Class.forName(subclassInfo.name); > classMatchProcessor.processMatch(klass); > foundMatches = true; > } catch (ClassNotFoundException | NoClassDefFoundError e) { > throw new RuntimeException(e); > } > } > } > if (!foundMatches) { > // TODO: Log.i("No classes found with superclass " + superclass.getName()); > } >}) ; > return this; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 440778
: 245529 |
253185