• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 74376
334
  • 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: 40798
829
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!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic