yf0994 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Fix Stopwatch.elapsedMillis() javadoc #1126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
  /**
   * Returns the current elapsed time shown on this stopwatch, expressed
   * in milliseconds, with any fraction rounded down. This is identical to
-   * {@code elapsedTime(TimeUnit.MILLISECONDS}.
+   * {@code elapsedTime(TimeUnit.MILLISECONDS)}.
   */
  public long elapsedMillis() {
    return elapsedTime(MILLISECONDS);
  }

Original issue reported on code.google.com by Ash2kk@gmail.com on 29 Aug 2012 at 10:53

GoogleCodeExporter commented 9 years ago
I just noticed that the source code and javadoc artifacts of 13.0.1 have 
different javadocs on this and other methods. Something must be wrong with 
packing/deployment?

guava-13.0.1-javadoc.jar contains docs like this [1] and 
guava-13.0.1-sources.jar have the snippet i posted above.

[1]: 
http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/googl
e/common/base/Stopwatch.html

Original comment by Ash2kk@gmail.com on 29 Aug 2012 at 11:13

GoogleCodeExporter commented 9 years ago
The linked page is missing the same close parenthesis as the snippet above, as 
does the javadoc jar.  Can you link directly to the two locations that disagree?

Original comment by cpov...@google.com on 29 Aug 2012 at 1:20

GoogleCodeExporter commented 9 years ago
Method Summary table only contains first sentence of the javadoc of the method 
- that confused me. But full doc of the method is identical. Sorry for the 
false alarm.

Original comment by Ash2kk@gmail.com on 29 Aug 2012 at 4:00

GoogleCodeExporter commented 9 years ago
OK, thanks.  Anyway, the original bug stands.

Original comment by cpov...@google.com on 29 Aug 2012 at 4:03

GoogleCodeExporter commented 9 years ago

Original comment by cpov...@google.com on 29 Aug 2012 at 10:32

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08