Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy JSR
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<h1>@Property proposal</h1> <h2>key</h2> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p> symbol </p></th> <th class="confluenceTh"><p> meaning </p></th> </tr> <tr> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> private </p></td> </tr> <tr> <td class="confluenceTd"><p> <img class="emoticon emoticon-yellow-star" data-emoticon-name="yellow-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_yellow.png" alt="(star)" title="(star)" /> </p></td> <td class="confluenceTd"><p> protected </p></td> </tr> <tr> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> public </p></td> </tr> <tr> <td class="confluenceTd"><p> <img class="emoticon emoticon-blue-star" data-emoticon-name="blue-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_blue.png" alt="(blue star)" title="(blue star)" /> </p></td> <td class="confluenceTd"><p> final </p></td> </tr> </tbody></table> <h2>Current</h2> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p> code </p></th> <th class="confluenceTh"><p> field </p></th> <th class="confluenceTh"><p> getter </p></th> <th class="confluenceTh"><p> setter </p></th> </tr> <tr> <td class="confluenceTd"><p> def x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> final x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /><img class="emoticon emoticon-blue-star" data-emoticon-name="blue-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_blue.png" alt="(blue star)" title="(blue star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> public x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> protected x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-yellow-star" data-emoticon-name="yellow-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_yellow.png" alt="(star)" title="(star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> private x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> public final x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /><img class="emoticon emoticon-blue-star" data-emoticon-name="blue-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_blue.png" alt="(blue star)" title="(blue star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> @Property x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> </tr> <tr> <td class="confluenceTd"><p> other permutations? </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> </tbody></table> <h2>Proposed</h2> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p> code </p></th> <th class="confluenceTh"><p> field </p></th> <th class="confluenceTh"><p> getter </p></th> <th class="confluenceTh"><p> setter </p></th> <th class="confluenceTh"><p> note </p></th> </tr> <tr> <td class="confluenceTd"><p> def x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> final x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /><img class="emoticon emoticon-blue-star" data-emoticon-name="blue-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_blue.png" alt="(blue star)" title="(blue star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> the field doesn't need to be final IMHO (dk) My view is that the field should be final(tug) <br class="atl-forced-newline" /> </p></td> </tr> <tr> <td class="confluenceTd"><p> public x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> protected x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-yellow-star" data-emoticon-name="yellow-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_yellow.png" alt="(star)" title="(star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> private x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> public final x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> <img class="emoticon emoticon-blue-star" data-emoticon-name="blue-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_blue.png" alt="(blue star)" title="(blue star)" /> </p></td> <td class="confluenceTd"><p> <br class="atl-forced-newline" /> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> a public final field like in Java <br class="atl-forced-newline" /> </p></td> </tr> <tr> <td class="confluenceTd"><p> @Property x </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-red-star" data-emoticon-name="red-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_red.png" alt="(red star)" title="(red star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> <img class="emoticon emoticon-green-star" data-emoticon-name="green-star" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/star_green.png" alt="(green star)" title="(green star)" /> </p></td> <td class="confluenceTd"><p> if it's still supported (MrG) My proposal is to remove it (tug) <br class="atl-forced-newline" /> </p></td> </tr> <tr> <td class="confluenceTd"><p> other permutations? </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> </p></td> <td class="confluenceTd"><p> what happens with static? (MrG) Static behave exactly the same(tug) <br class="atl-forced-newline" /> </p></td> </tr> </tbody></table> <h2>Migration notes</h2> <p>Basically if you have @Property at the moment then you will need to remove it. If the declaration is typed then you are done. If it's not then you need to replace the @Property with def.</p> <p>If you have field declarations which have default visibility (def x or String y, for example) then these will become properties. If you are using them from Groovy then you won't *have* to do anything. If they are accesses from Java then you will need to make them fields again. If you want them to still be fields you need to put public in front of the declaration.</p> <p>Fields which are declared public, protected or private can be left alone.</p> <p>If you would like to prepare for this then you can start to declare visibility for all your fields. The when we remove @property you can run a sed script which removes all the changes @Property to def and then compile your source. The compiler will than complain about the use of def and a type and you will need to remove all these defs.</p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced