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)
![Nicholas Lee](https://secure.gravatar.com/avatar/a98eda3d4da3299606a41a5a2fba23ae?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Nicholas Lee
Courses Plus Student 4,222 PointsIn the console.txt file, you see some sample output as a result of compiling the Stuff class.
In the console.txt file, you see some sample output as a result of compiling the Stuff class. After looking at the compiler output, add the correct @SuppressWarnings annotation that suppresses the warnings listed. Keep in mind that these warnings are fictitious, and that there is intentionally no code in the doThings method. The only thing you need to add is the correct annotation.
What is the correct words after @SuppressWarnings?
public class Stuff {
@SuppressWarning("method")
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.
2 Answers
![Hubert Heineken](https://secure.gravatar.com/avatar/f3acd3623441d01b8a58d4ef4d9ede54?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Hubert Heineken
Courses Plus Student 2,412 Points@SuppressWarnings ({"spellingerror","asleeponkeyboard","wet"})
Simply put above annotation with the warnings words from console file.
![Ken Alger](https://secure.gravatar.com/avatar/cf2cad7e6e37acacfa5201068856ed3d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ken Alger
Treehouse TeacherNicholas;
Inside your annotation you need to include the three distinct warnings that are being displayed in console.txt
.
Post back if you are still stuck.
Ken