java / devjava-content

56 stars 17 forks source link

typo on links on StringBuilder and autoboxing tutorial #112

Closed Just-some-one closed 5 months ago

Just-some-one commented 5 months ago

for the String builder tutorial

StringBuilder(CharSequence cs): Constructs a string builder containing the same characters as the specified CharSequence, plus an extra 16 empty elements trailing the CharSequence.

and

StringBuilder(String s): Creates a string builder whose value is initialized by the specified string, plus an extra 16 empty elements trailing the string.

both link to the constructor need to be corrected

for the javadoc

those 2 line need to be updated

"StringBuilder(CharSequence)":            "java/lang/StringBuilder.html#%3Cinit%3E(java.lang.CharSequence)",
  "StringBuilder(String)":                  "java/lang/StringBuilder.html#%3Cinit%3E(java.lang.String)",

to be

"StringBuilder(CharSequence)":            "java.base/java/lang/StringBuilder.html#%3Cinit%3E(java.lang.CharSequence)",
  "StringBuilder(String)":                  "java.base/java/lang/StringBuilder.html#%3Cinit%3E(java.lang.String)",

to fix the issue

for the autoboxing tutorial

The rest of the examples in this section use generics. If you are not yet familiar with the syntax of generics, see the Generics section.

a link to the generic tutorial would be nice https://dev.java/learn/generics/

and have a nice day :)

JosePaumard commented 5 months ago

Done. Thank you!

Just-some-one commented 5 months ago

thanks for you @JosePaumard