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 241535 Details for
Bug 431857
[formatter] with line wrap, in consistent behavior of annotation indentation on methods anonymous classes.
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.
A file to show all the different ways I have found to create anonymous classes, and how the @Override annotation behaves in each case.
AnnotationIndentTest.java (text/x-java), 1.68 KB, created by
Yang Shan
on 2014-04-02 22:07:57 EDT
(
hide
)
Description:
A file to show all the different ways I have found to create anonymous classes, and how the @Override annotation behaves in each case.
Filename:
MIME Type:
Creator:
Yang Shan
Created:
2014-04-02 22:07:57 EDT
Size:
1.68 KB
patch
obsolete
>/** > * Test Class to show How Eclipse formatter Options affect the @Override > * annotation > */ >public class AnnotationIndentTest { > > private interface ReallyLongInterfaceName { > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter); > } > > private class ReallyLongInterfaceNameImplementation implements > ReallyLongInterfaceName { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > } > > private ReallyLongInterfaceName t = new ReallyLongInterfaceName() { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > }; > > private ReallyLongInterfaceName mReallyLongInterfaceNameImplementation = > new ReallyLongInterfaceName() { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > }; > > public void doSomething(String someReallyLongInterfaceParameter, > ReallyLongInterfaceName reallyLongInterface) { > reallyLongInterface.reallyLongInterfaceFunction( > someReallyLongInterfaceParameter); > } > > public void someFunction() { > ReallyLongInterfaceName localReallyLongInterfaceImplementation = > new ReallyLongInterfaceName() { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > }; > > ReallyLongInterfaceName shotName = new ReallyLongInterfaceName() { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > }; > > doSomething(" someReallyLongPLayerIdNameasda ", > new ReallyLongInterfaceName() { > @Override > public void reallyLongInterfaceFunction( > String reallyLongInterfaceParameter) { > } > }); > } >}
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 431857
: 241535