You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Furkan KAMACI (JIRA)" <ji...@apache.org> on 2014/04/06 16:43:15 UTC

[jira] [Updated] (STANBOL-1314) Math.random() Cast to 'int' is Always Rounded Down to 0

     [ https://issues.apache.org/jira/browse/STANBOL-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Furkan KAMACI updated STANBOL-1314:
-----------------------------------

    Attachment: STANBOL-1314.patch

I've added the patch file.

> Math.random() Cast to 'int' is Always Rounded Down to 0
> -------------------------------------------------------
>
>                 Key: STANBOL-1314
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1314
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Furkan KAMACI
>            Priority: Minor
>             Fix For: 1.0.0
>
>         Attachments: STANBOL-1314.patch
>
>
> TestLocationEnhancementEngine.java and TestEntityLinkingEnhancementEngine.java tries to set some random numbers for start/end if not found in the content but code existing code lines has a bug and random number is always rounded down to 0.



--
This message was sent by Atlassian JIRA
(v6.2#6252)