Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [javadocs]

Filter by
Sorted by
Tagged with
1 vote
2 answers
558 views

I often find it helpful to use KDoc/Javadoc comments inside of a class or function instead of normal comments. IntelliJ colorizes them more obviously by default and, more importantly, allows ...
Matt Robertson's user avatar
-4 votes
1 answer
115 views

I am wondering if I wrote a little simple documentation and provided the JavaDoc, would it be enough documentation for a application GUI manager library for java?
Sushila Jyothi Lévêque's user avatar
-2 votes
1 answer
199 views

In the Java course I'm currently doing at university, a lot of emphasis is placed on using JML constructs like @require and @ensure clauses in Javadoc comments. I understand that this is implementing ...
jmcph4's user avatar
  • 101
-2 votes
1 answer
611 views

I have been reading the source code of some Java library classes, specifically CompletableFuture. I noticed that the authors are making extensive use of cryptic (single-letter) variables in the code, ...
Dimos's user avatar
  • 419
2 votes
1 answer
267 views

The current way of knowing if a BigDecimal is greater than another is bigDecimal.compareTo(otherBigDecimal) > 0 (or one.compareTo(another) == 1), but I find it too clunky and unexpressive. ...
lemuel's user avatar
  • 131
9 votes
1 answer
378 views

I'm working on a small library that provides implementations of basic, well known string metrics. Mostly for my own education. So development happens whenever I've got a bit of spare time. Because of ...
M.P. Korstanje's user avatar
1 vote
1 answer
173 views

Some times I see problematic differences between Java doc and Android doc in about method documents.For example in about setReadable (boolean readable, boolean ownerOnly) method you can see java doc ...
hasanghaforian's user avatar
8 votes
3 answers
1k views

I just came across the following in a lab manual at university: You do need to study the interfaces of the classes by generating the javadoc for them so you know what operations are provided (feel ...
Todd Davies's user avatar
10 votes
1 answer
33k views

This is a really simple question but oddly, I'm finding it difficult to get a definite answer.... What do you do with fields? Is this valid? /** * Keeps track of all usernames in the system. */ ...
benscabbia's user avatar
2 votes
4 answers
891 views

So, unfortunately, I'm stuck with code where I'm doing this: @Override method A{ //calls private methods 1-8 } private method 1{ //copy/pasted } And so on for all of the private methods. I'd ...
Mitch's user avatar
  • 153
1 vote
1 answer
627 views

There are two types of documentation. One type, the Implementation Documentation, contains information about specific implementation of a construct (eg. Class, Method, etc.). It is targeted to the ...
Angelo.Hannes's user avatar
3 votes
1 answer
3k views

My problem is the following: I have an interface that requires its implementations to implement a static method, namely void load(). However, until Java 8, it seems we won't get static methods in ...
Mog's user avatar
  • 141
3 votes
2 answers
3k views

I'm currently writing an API and its documentation. For example I have something like this: public interface Event { } public interface Process { } public interface EventProcessor { /** * ...
SpaceTrucker's user avatar
  • 1,550
2 votes
3 answers
192 views

As any taught Software Engineer knows how important Documentation for good software projects is. Could you show me best practices for assure good documentation beside of JavaDoc comments? In my ...
DmiN's user avatar
  • 161
1 vote
2 answers
229 views

This question & its answers are useful but not sufficient for my problem. My Question is if I want to add a javadoc as @Deprecated As of version x.y, replaced by {@link SomeClass} in my current ...
Soumyadip Das's user avatar
11 votes
2 answers
2k views

In the JavaDoc for X509Certificate getSubjectDN() it states: Denigrated, replaced by getSubjectX500Principal(). I am used to seeing Deprecated in the for methods that should not be used any longer, ...
Jacob Schoen's user avatar
9 votes
1 answer
2k views

What would be a good alternative to inline Java documentation, i.e. can one have a separate docs file somehow mapped to a java source file? I have never liked huge comment sections littered in code.
S.D.'s user avatar
  • 1,100
2 votes
1 answer
1k views

The standard JavaDoc template(Doclet) didn't change much until the recent JDK7. In my opinion, JDK7 template only made it even more difficult to browse. I looked at several third-party doclets, but ...
chemhack's user avatar
12 votes
3 answers
3k views

Is there a good term that is similar but different than "deprecate" to mean that a method or API is in the code base but should not be used because its implementation is not complete or will likely ...
Michael Levy's user avatar
7 votes
1 answer
2k views

I'm currently looking into API documentation generation tools and I noticed that apparently there are no efforts going on in standardization. Javadoc style is kind of an ubiquitous convention... it ...
dukeofgaming's user avatar
5 votes
3 answers
615 views

I ported a library to Java, but am wondering what to do with the JavaDoc comments. The original library used javadoc comments too, so do I leave the @author tags from the original code? And how do I ...
Adam Harte's user avatar
10 votes
2 answers
3k views

I want to write Javadoc in DRY way. But the oracle document about Javadoc says write same thing again in overload method comment. Can't I avoid repetition?
Sanghyun Lee's user avatar
19 votes
6 answers
6k views

Recently I've been working on refactoring parts of the code base I'm currently dealing with - not only to understand it better myself, but also to make it easier for others who are working on the code....
Andreas Johansson's user avatar