This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 123935 - Source typo
Summary: Source typo
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-13 10:36 UTC by Rebecca Liu
Modified: 2008-09-02 04:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rebecca Liu 2007-12-13 10:36:55 UTC
profiler/modules/main/src/org/netbeans/modules/profiler/ppoints/Bundle.properties

StopwatchProfilingPointFactory_PpDescr=Reports hit time or measures execution time of a method fragment. You may use
this Profiling Point instead of calling System.currentTimeMillis() or for measuring single method run time.

"or" is not needed here.
Comment 1 Jiri Sedlacek 2007-12-13 20:16:57 UTC
Stopwatch PP is used for taking single timestamp OR for measuring duration (delta between two timestamps). I can't see
the typo here, could you please point to it and eventually suggest a better wording? Thanks.
Comment 2 Rebecca Liu 2007-12-14 02:57:22 UTC
Well, from the translation point, translators thought the sentence should be like: "You may use
this Profiling Point instead of calling System.currentTimeMillis() for measuring single method run time.", since
"instead of calling..." and "for measuring..." seems not suitable at the two sides of "or".

As you said, "Stopwatch PP is used FOR taking single timestamp OR FOR measuring duration"; in the way, we can understand
and know how to translate. "Or" here connects two "For" phrases. 

That's why we thought "or" here is extra, not needed. :)
Comment 3 Kenneth Ganfield 2008-07-25 09:24:31 UTC
Suggested rewording:

StopwatchProfilingPointFactory_PpDescr=
You may use this profiling point to obtain a timestamp instead of calling System.currentTimeMillis().
Using profiling points you can measure the time between timestamps to obtain the execution time of a method fragment.
Comment 4 Jiri Sedlacek 2008-08-28 10:42:10 UTC
Fixed for 6.5.


changeset:   98141:643392ce8814
date:        Thu Aug 28 11:41:17 2008 +0200
summary:     Bugfix #123935 Improved Stopwatch PP hint wording
Comment 5 Quality Engineering 2008-09-01 17:29:56 UTC
Integrated into 'main-golden', available in build *200809011401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/643392ce8814
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #123935 Improved Stopwatch PP hint wording
Comment 6 Rebecca Liu 2008-09-02 04:05:38 UTC
Verified.