Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Sybex 816. Chapter 2. Page 193. Potential typo

 
Greenhorn
Posts: 3
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, Jeanne and Scott, I think there might be a typo:

The @SafeVargs marker annotation indicates that a method does not perform any potential unsafe operations on its varargs parameter.

Selikoff, Scott. OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide (p. 193). Wiley. Kindle Edition.  



Returning to @SafeVargs, the annotation is used to indicate to other developers that your method does not perform any unsafe operations.

Selikoff, Scott. OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide (p. 193). Wiley. Kindle Edition.  



@SafeVargs might be @SafeVarargs?
 
Marshal
Posts: 77529
372
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for providing complete information about the book. If you look here, you will find errata, not including what you mentioned, so you would appear to have found a “new” error. Please wait for Jeanne to check this thread.
 
author & internet detective
Posts: 41578
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pavel,
Confirmed and added to the errata. I also gave you a cow because I had to read your post 5 times to see what was wrong.

Yes, it should definitely be @SafeVarargs!
 
For my next trick, I'll need the help of a tiny ad ...
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic