Removing all redundant super constructor calls
This commit is contained in:
		| @@ -50,7 +50,6 @@ public class Author { | |||||||
|    *          email of the author |    *          email of the author | ||||||
|    */ |    */ | ||||||
|   public Author(String username, String name, String email) { |   public Author(String username, String name, String email) { | ||||||
|     super(); |  | ||||||
|     this.username = username; |     this.username = username; | ||||||
|     this.name = name; |     this.name = name; | ||||||
|     this.email = email; |     this.email = email; | ||||||
|   | |||||||
| @@ -52,7 +52,6 @@ public class Book { | |||||||
|    *          author of the book |    *          author of the book | ||||||
|    */ |    */ | ||||||
|   public Book(String title, double price, Author author) { |   public Book(String title, double price, Author author) { | ||||||
|     super(); |  | ||||||
|     this.title = title; |     this.title = title; | ||||||
|     this.price = price; |     this.price = price; | ||||||
|     this.author = author; |     this.author = author; | ||||||
|   | |||||||
| @@ -45,7 +45,6 @@ public class Author { | |||||||
|    *          username of the author |    *          username of the author | ||||||
|    */ |    */ | ||||||
|   public Author(String name, String email, String username) { |   public Author(String name, String email, String username) { | ||||||
|     super(); |  | ||||||
|     this.name = name; |     this.name = name; | ||||||
|     this.email = email; |     this.email = email; | ||||||
|     this.username = username; |     this.username = username; | ||||||
|   | |||||||
| @@ -42,7 +42,6 @@ public class Book { | |||||||
|    *          price of the book |    *          price of the book | ||||||
|    */ |    */ | ||||||
|   public Book(String title, double price) { |   public Book(String title, double price) { | ||||||
|     super(); |  | ||||||
|     this.title = title; |     this.title = title; | ||||||
|     this.price = price; |     this.price = price; | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -41,8 +41,6 @@ public final class Student implements Serializable { | |||||||
|    * @param grade as respective grade of student |    * @param grade as respective grade of student | ||||||
|    */ |    */ | ||||||
|   public Student(final int studentId, final String name, final char grade) { |   public Student(final int studentId, final String name, final char grade) { | ||||||
|     super(); |  | ||||||
|  |  | ||||||
|     this.studentId = studentId; |     this.studentId = studentId; | ||||||
|     this.name = name; |     this.name = name; | ||||||
|     this.grade = grade; |     this.grade = grade; | ||||||
|   | |||||||
| @@ -31,7 +31,6 @@ public class Message { | |||||||
|   |   | ||||||
|   // Parameter constructor. |   // Parameter constructor. | ||||||
|   public Message(String msg) { |   public Message(String msg) { | ||||||
|     super(); |  | ||||||
|     this.msg = msg; |     this.msg = msg; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -37,7 +37,6 @@ public class HeroStat { | |||||||
|  |  | ||||||
|   // All constructors must be private. |   // All constructors must be private. | ||||||
|   private HeroStat(int strength, int intelligence, int luck) { |   private HeroStat(int strength, int intelligence, int luck) { | ||||||
|     super(); |  | ||||||
|     this.strength = strength; |     this.strength = strength; | ||||||
|     this.intelligence = intelligence; |     this.intelligence = intelligence; | ||||||
|     this.luck = luck; |     this.luck = luck; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user