Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![shekhar bhardwaj](https://secure.gravatar.com/avatar/876a19d8a8f05900c79b8f8dcb7490f0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
shekhar bhardwaj
Full Stack JavaScript Techdegree Student 12,373 PointsCompilation error for @SupressWarnings("spellingerror","asleeponkeyboard","wet")
Please if anybody can tell me what is wrong with my annotation.
public class Stuff {
@SupressWarnings("spellingerror","asleeponkeyboard","wet")
public void doThings() {
// Nothing to see here
// Or here
// Or here
// Or here
}
}
Stuff.java:6 warning: [spellingerror] A spelling error was found. Wherever possible,
use correct spelling.
Stuff.java:9 warning: [asleeponkeyboard] You have a sequence of characters suggesting
that you fell asleep on your keyboard.
Stuff.java:12 warning: [wet] Duplicate code above this line suggests that you may be
violating the DRY principle. Remember: Do not Repeat Yourself.
![shekhar bhardwaj](https://secure.gravatar.com/avatar/876a19d8a8f05900c79b8f8dcb7490f0?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
shekhar bhardwaj
Full Stack JavaScript Techdegree Student 12,373 PointsErin Orstrom - sorry about not listing the answer after resolving the error,
Suppressing errors should be passed in as an array - @SuppressWarnings({"spellingerror","asleeponkeyboard","wet"})
![Erin Orstrom](https://uploads.teamtreehouse.com/production/profile-photos/5044182/micro_2016_05_19_NSS_Cohort_12_0274_T_copy.jpg)
Erin Orstrom
44,468 PointsYep that made the task pass. Thank you Shekhar for that answer! Helped me out a lot, and I was able to complete the course.
Erin Orstrom
44,468 PointsErin Orstrom
44,468 PointsI am having the same issue.
My code:
The output/error message: