You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by "Niclas Hedhman (JIRA)" <ji...@apache.org> on 2013/12/11 07:08:06 UTC
[jira] [Updated] (RIVER-430) Minor precedence bug in
DefaultPolicyScanner.PrincipalEntry.toString
[ https://issues.apache.org/jira/browse/RIVER-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niclas Hedhman updated RIVER-430:
---------------------------------
Attachment: Fixed_precedence_bug_in_toString.patch
Attaching fix of the problem, which also contains many {@link} fixes, changes to for-each, and general cleaning of the code.
> Minor precedence bug in DefaultPolicyScanner.PrincipalEntry.toString
> --------------------------------------------------------------------
>
> Key: RIVER-430
> URL: https://issues.apache.org/jira/browse/RIVER-430
> Project: River
> Issue Type: Bug
> Reporter: Niclas Hedhman
> Attachments: Fixed_precedence_bug_in_toString.patch
>
>
> The calculation of the StringBuilder size is incorrect
> However, I also suspect that the operations to determine the total size of the string is a sub-optimization, that it is likely to not be any faster, nor save any particular amount of memory, and should simply be replaced with a,
> StringBuilder sb = new StringBuilder(100);
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)