Skeletal javadocs - feel in love

Maybe we should remove a requirement to add javadocs to each and every method?
This sample of code
May we agree that trivial methods don't require any javadocs?
PS: some fields should be readonly, that means even no setter was needed in that case, not just the javadoc.
And in case a field is atomic and readonly, we might just declare it public final and bother not with those gayers/sayers and docs for them
This sample of code
- Code: Select all
/**
* <p>Quest_Assignment class.</p>
*
* @author Forge
* @version $Id: Quest_Assignment.java 10192 2011-09-03 09:22:29Z slapshot5 $
*/
public class Quest_Assignment {
private int id;
private int requiredNumberWins;
private int computerLife;
private long creditsReward;
private String name;
private String desc;
private String difficulty;
private String cardReward;
private String iconName;
private boolean repeatable;
private ArrayList<CardPrinted> cardRewardList = new ArrayList<CardPrinted>();
private CardList human = new CardList();
private ArrayList<String> compy = new ArrayList<String>();
/**
* <p>Setter for the field <code>id</code>.</p>
*
* @param idIn a int.
*/
public final void setId(final int idIn) {
this.id = idIn;
}
/**
* <p>Getter for the field <code>id</code>.</p>
*
* @return a int.
*/
public final int getId() {
return id;
}
/**
* <p>Setter for the field <code>creditsReward</code>.</p>
*
* @param creditsRewardIn a long.
*/
public final void setCreditsReward(final long creditsRewardIn) {
this.creditsReward = creditsRewardIn;
}
/**
* <p>Getter for the field <code>creditsReward</code>.</p>
*
* @return a long.
*/
public final long getCreditsReward() {
return creditsReward;
}
/**
* <p>Setter for the field <code>name</code>.</p>
*
* @param nameIn a {@link java.lang.String} object.
*/
public final void setName(final String nameIn) {
this.name = nameIn;
}
/**
* <p>Getter for the field <code>name</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public final String getName() {
return name;
}
- Code: Select all
/**
* SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM 10192 2011-09-03 09:22:29Z slapshot5 $
*/
public class Quest_Assignment {
private int id;
private int requiredNumberWins;
private int computerLife;
private long creditsReward;
private String name;
private String desc;
private String difficulty;
private String cardReward;
private String iconName;
private boolean repeatable;
private ArrayList<CardPrinted> cardRewardList = new ArrayList<CardPrinted>();
private CardList human = new CardList();
private ArrayList<String> compy = new ArrayList<String>();
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM
*/
public final void setId(final int idIn) {
this.id = idIn;
}
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM
*/
public final int getId() {
return id;
}
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM SPAM SPAM SPAM
*/
public final void setCreditsReward(final long creditsRewardIn) {
this.creditsReward = creditsRewardIn;
}
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM
*/
public final long getCreditsReward() {
return creditsReward;
}
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*/
public final void setName(final String nameIn) {
this.name = nameIn;
}
/**
* SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*
* SPAM SPAM SPAM
*/
public final String getName() {
return name;
}
- Code: Select all
// $Id: Quest_Assignment.java 10192 2011-09-03 09:22:29Z slapshot5 $
public class Quest_Assignment {
private int id;
private int requiredNumberWins;
private int computerLife;
private long creditsReward;
private String name;
private String desc;
private String difficulty;
private String cardReward;
private String iconName;
private boolean repeatable;
private ArrayList<CardPrinted> cardRewardList = new ArrayList<CardPrinted>();
private CardList human = new CardList();
private ArrayList<String> compy = new ArrayList<String>();
public final void setId(final int idIn) {
this.id = idIn;
}
public final int getId() {
return id;
}
public final void setCreditsReward(final long creditsRewardIn) {
this.creditsReward = creditsRewardIn;
}
public final long getCreditsReward() {
return creditsReward;
}
public final void setName(final String nameIn) {
this.name = nameIn;
}
public final String getName() {
return name;
}
May we agree that trivial methods don't require any javadocs?
PS: some fields should be readonly, that means even no setter was needed in that case, not just the javadoc.
And in case a field is atomic and readonly, we might just declare it public final and bother not with those gayers/sayers and docs for them