How to tell what methods where not used in the code?

Hi there,
I wonder if there's a way to check what method are not used in the execution code (void main).
Example:
in the code below, the following method where not used:
setAge, getAge, getName,setName, addFeedback
public class Test
     public static void main(String args[])
          Employee empl = new Employee("John", 54);
          System.out.println(empl.getDeatils());
public class Employee
     private int age;
     private String name;
     public Employee(String name, int age)
          this.name=name;
          this.age=age;
     public String getDeatils()
          return name+" ("+age+")";
     public void addFeedback()
          //do something here.
     public int getAge()
          return age;
     public void setAge(int age)
          this.age = age;
     public String getName()
          return name;
     public void setName(String name)
          this.name = name;
}

Yucca wrote:
georgemc wrote:
Yucca wrote:
Sound like you should visit the logging API or you could do SOP all over your code which would make it very unreadableI don't see why logging code will make his code any less messy than SOP everywhere. Unless you're talking about applying logging by AOP, which is equally messy in a different way.I never implied that the one was tidier than the other. O merely recommended my knowledge on how to help the OP and gave 2 choices. Oh right. It looked like you were suggesting SOP was messier somehow. Never mind, then.
Besides is AOP really that bad when using Interceptors? I know that this is new to Java but interceptors are really not that untidy.I didn't say they were untidy. I didn't say there was anything wrong with AOP. But logging by AOP results in pretty useless, messy logs. "This method was called with these parameters" all over the place, rather than something nice and friendly. Remember, logging is more often read by support staff than developers, so while it might be obvious to you what "getLlama(200, 3)" means, it's probably garbage to the support bods.

Similar Messages

  • HT1338 Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?

    Can anyone tell me how to find what OS I'm using on the Mac?
    Tiger or Leopard?
    Also, how do I update from 10.6.8 to the latest version?

    Go to the Apple menu and select "About This Mac". You will get a window similar to this one -
    You current OS X version number will be shown as I've marked.
    OS X 10.4.x is Tiger, 10.5.x is Leopard, 10.6.x is Snow Leopard, 10.7.x is Lion, and 10.8.x is Mountain Lion.
    Whether or not you can go to the latest OS X version depends upon your hardware -
    You will need to purchase the retail set for the OS X version you want; there is no pint in getting and installing any intermediate versions. Once the retail version has been installed, you can update it to the latest release for that version via download updater.

  • How to tell what codec has been used??

    Hi
    Just wondering how to tell what codec a particular video clip has been encoded in? I cannot see it anywhere in bridge. after fx dos it for some but not all clips.
    cheers
    angus

    if you're using Loader to load the swfs, you could examine e.contentLoaderInfo.url to see which swf it is

  • TS1292 I received 3 $10 gift card that I ahve not used yet the codes say they have been redeemed. The cards were a gift less thn 1 year ago. All 3 cards start xxmp. What might the concern be?

    A year ago Xmas I got 3 $10 gift cards, starting code on all 3 is xxmp, and even though I have not used them the computer says they have been used.

    Hello SBentley22,
    I can only imagine how upset I would be to discover that over $1000 in gift card funds seemed to be missing. I certain that I would not do well with the additional complications that you've described either. I apologize for you and your boyfriend having to cope with this situation. Certainly this was never our goal.
    I was unable to locate the purchases or returns that you mention using the information you provided when you signed up for Best Buy Unboxed. I would very much like to look into this situation for you and do what I can to help, but I will need more information to begin. If you will please send me a private message that includes your full name, telephone number, and the Customer Service PIN from the receipt where the gift card was issued, I'll get started with my research.
    Please know that I'm extremely grateful that you took the time to bring your situation to our attention. I look forward to hearing from you.
    Sincerely,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to tell what other program is using webcam?

    Hello,
    My in-laws sometimes (maybe 20% of the time) get a message that says that the webcam is already in use by another program when they try to video chat with us. The message is in Danish and says something like "Webcamaret bruges af et andet program". They haven't started any other program. iChat shows a green camera icon on both their buddy list and on our remote system's buddy list.
    Restarting or stopping iChat and disconnecting/reconnecting their webcam always seems to fix the problem, but I'd like to understand how to fix once and for all. Restarting is time consuming and rather disruptive for them and reseating the webcam is difficult for them physically to do.
    They have a Mac Mini Intel 1.66 Core Duo. I recently switched out their firewire-based iSight with a USB-based Logitech Quickcam Vision Pro for Mac. They had the same problem with both, but they don't have the iSight any longer to try it again.
    They are half-way across the world, and not tech-savvy, so resetting the PMU won't be possible.
    I've looked through their Console logs, but don't even see any error message when it occurs.
    Thanks in advance for any suggestions.
    David

    Hi,
    Have them check in System Preferences > Accounts > (The Logged in account) > Login Items.
    This is a list of the apps and utilities that start up when the Mac does.
    (iTunes Helper is a common one that most people have).
    This is one common cause of another app having access the the camera.
    Look for iMovie, Photo Booth, Any System or iChat Add-On relating to Camera and camera tweaks, Any Software for the Logitech (It should not need to be started up at computer Launch)
    Comic Book if bundled with their Mac.
    Also check this list EZ Jim's Work
    I would also get them to Check the System Profiler and then use the reveal Triangles to see Hardware > USB
    If you have another way to login in to their computer other than iChat Screen Sharing then you could run this in Terminal
    /Applications/iChat.app/Contents/MacOS/iChat -errorLogLevel 7
    With iChat Shut down:-
    Copy and Paste the Bold Text into Terminal and then hit the Enter key.
    This will start iChat and Create Log in Terminal.
    When the Buddy List has finished Loading Quit iChat in the Normal Way.
    Copy the whole Log up to that point and paste it into TextEdit and send it to your self.
    If you read through it, it should list two Cameras:-
    1) the External (Or any Internal iSight for other reading this)
    2) A software one ready for iChat Screen Sharing.
    If the Regular one lists a Count less than 0 (zero) then iChat is having a job reading the Hardware state.
    If this is the case then you could try deleting com.apple.iChat.plist from their Home Folder/Library/Preferences (Just drag it to the Trash)
    iChat will need to be restarted where it will rewrite that .plist after checking the System again.
    NOTE:-
    This does lose all the other settings they have changed from Defaults in the iChat Preferences except the Accounts pane. (Saved Transcripts, Font choices, IM colours etc)
    Are they using their Web Browser to Chat on Flash Based or the Google Mail Web Chat page ?
    If that Tab or Window is still open (if they are still in a "Room") the camera will be "held" by the web Browser.
    If they do use this method and it is Flash check they have not ticked the "Remember" button to Allow access each time they use that Chat site (I am not sure if the Google Chat Plug-in has a similar "Allow" Pop Up).
    FaceTime for the Mac (The Beta) can in fact use the camera at the same time as iChat. It does not seem to matter which application is launched first.
    Resetting the SMC on the Mac Mini is not invasive
    Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    1. Shut down the computer.
    2. Unplug the computer's power cord.
    3. Press and hold the power button for 5 seconds.
    4. Release the power button.
    5. Attach the computers power cable.
    6. Press the power button to turn on the computer.
    See the third Expandable link in this Article (Near the bottom)
    In most cases it can be just that the System has flagged somewhere that it thinks the camera is in use when in fact nothing is.
    A PRAM reset may sort it but the SMC reset is more certain.
    A PRAM reset.
    Shut down the computer.
    Restart it holding down Apple/CMD (or ⌘)+ALT PR Keys until you have heard three Start Up Bongs.
    Hope this helps.
    8:40 PM Wednesday; January 26, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How to tell what recovery point was used for restore

    Is there a way to determine what recovery point was used for a restore after the restore was started.

    The question comes from the experience of having a package installed but not being able to build it from the same PKGBUILD (due to nontrivial issues). The package must have been built successfully by *a* build system, so ideally one would want to replicate that build. The relevant differences I could think of are the compiler flags and to a lesser extent the hardware build platform.
    You should describe these supposedly non-trivial issues. I've never experienced what you describe in my years using Arch, nor have I ever heard it suggested that the famously vanilla Arch packages are built using some sort of unconventional compiler flags. I have heard multiple developers say using highly modified CPU optimizations and modified linking and such are mostly pointless, however. So I'd bet a week's pay that the build system uses vanilla GCC with the default settings. Why would the thing that actually builds Arch Linux be the one part of the Arch ecosystem that doesn't abide by the Arch standards? Why would only some packages have library linking problems and such when all packages are built on the same machine against the same library versions---and thus the conditions resulting in a failed build would be identical to those in a successful build? I could be wrong, but I think you're on the wrong track. The quickest way to find out is to describe what the real problem is, not what you imagine the solution to be.

  • How to tell what  files have NOT been Javadoc'd.

    Is there a way to generate a list of filenames that lists out what has not been Javadoc'd? I have tons of Java files, and I need to produce a list to give back to the developers, that tells that what they haven't Javadoc'd.
    Thanks.

    Our NetBeans IDE guru found an Ant solution. But it leaves a lot to be desired. That's why I'm posting this in the Forum. His solution is as follows.
    The build.xml file was added the following:
    <target name="Build Javadoc Report - Files">
    <property file="nbproject/project.properties"/>
    <property file="nbproject/private/private.properties"/>
    <echo message="Building Javadoc package information"></echo>
    <delete dir="dist/JavadocReport"></delete>
    <mkdir dir="dist/JavadocReport"></mkdir>
    <javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" docletpath="doccheck.jar" maxmemory="256M" destdir="dist/JavadocReport">
    <packageset dir="${src.dir}" includes="*/**"/>
    </javadoc>
    This generates some reports. But the information is broken down in a way that it's not easy for a number of developers to sift through. The toplevel report is very top level, and you can't see the whole tree sturcture of what is not Javadoc'd in one swoop.
    So I'm sifting through the list that this Ant script generates, and figurin out what who wrote what file, and what files are related to the top level report. For instance, the report might tell me that file cxxi.apisupport.pythonsupport has 5 files without Javadocs. But I have to click on "cxxi.apisupport.pythonsupport" to find out what the 5 files are, as these are listed in a separate part of the report. I think this is as close as I will get, with the limited knowledge I have at the moment about Javadocs, scripts, python and all this stuff.
    have a nice weekend!

  • How do I find out what features are not useful in my Classifier?

    How do I find out what features are not useful in my Classifier? I am trying to trim down the number of features to speed up the training of my data, I have about 3700 features. I have found the Filter Based Feature Selection Module and have not been successful
    in using it. I have looked through all the examples and have not been able to find any examples using the module. Will the Filter Based Feature Selection Module help me to trim features. If so how do I use it?

    One way to do this would be is to use a random forest classifier. Feature/variable importance can be obtained relatively easily with random forests. 
    Here is how you may do it in R.
    > install.packages('randomForest') #install randomForest package in R if it is not already there
    > library(randomForest) # reference the library
    > data(mtcars) # load motor cars data that ships with 
    #train a random forest 
    > mtcars.rf <- randomForest(mpg ~ ., data=mtcars, ntree=1000,keep.forest=FALSE, importance=TRUE)
    > importance(mtcars.rf)
    > importance(mtcars.rf)
    #You will see an output like below
           %IncMSE IncNodePurity
    cyl  16.168645     169.96741
    disp 18.672188     260.08722
    hp   17.584375     184.95007
    drat  6.948743      63.54528
    wt   17.818509     254.30347
    qsec  4.772889      33.25546
    vs    5.303058      24.39064
    am    5.210181      17.36626
    gear  4.619161      21.55450
    carb  8.577037      28.46715
    # or plot the importance as follows
    > varImpPlot(mtcars.rf)
    What this tells you is how important predictors/features/variables like horsepower(hp), weight(wt), no. of cylinders (cyl) is in predicting miles per gallon (mpg).
    If you are wondering how the data looks like. Try this
    head(mtcars) # gives first few lines of the data set.
     mpg cyl disp  hp drat   wt ... 
    Mazda RX4     21.0   6  160 110 3.90 2.62 ... 
    Mazda RX4 Wag 21.0   6  160 110 3.90 2.88 ... 
    Datsun 710    22.8   4  108  93 3.85 2.32 ... 
    . Try this
    Here is a few useful resources:
    Random Forest documentation (Check out the pages on variable importance and variable importance plot)
    http://cran.r-project.org/web/packages/randomForest/randomForest.pdf 
    Motor cars data: http://stat.ethz.ch/R-manual/R-devel/library/datasets/html/mtcars.html

  • HT1338 My software update tells me I'm not connected to the internet... if that's true how am I able to ask this question?... Can anyone tell me what's going on?

    I can't update my software because software update tells me I'm not connected to the internet... if that's true how am I able to ask this question?... Can anyone tell me what's going on and what I need to do to correct this?

    If you have a slow connection speed, update will not download.
    Are you using broadband and are you close to the modem?

  • HT5787 i forgot Icloud password and security question what method i can use to reset it is ther any or what i am still using iphone but my icloud is disabled for to many atempts what now how to rest the password

    i forgot Icloud password and security question what method i can use to reset it is ther any or what i am still using iphone but my icloud is disabled for to many atempts what now how to rest the password

    Hi bekimlorini,
    Thanks for visiting Apple Support Communities.
    You may find this article helpful with resetting your security questions:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    If you're not able to receive email to your rescue email address, you may need to contact iTunes Store Support:
    You'll need to contact iTunes Store support to have your questions and answers reset.
    All the best,
    Jeremy

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

  • How to tell what packages have recently run

    Occasionally, after start up, I'll see something that looks like a package that quickly runs.  I have no idea where to look for information to figure out what ran.  I've ran searches trying to find out how to tell what packages have recently run but have not found anything useful.  If anyone knows or has any ideas on what I can do to figure that out, I'd love the help.

    You are welcome. Based on my experiences, the only time I look at Console is when something is not working. You could get overly engrossed trying to figure out what everything means.

  • How to tell N6.5 DHCP to use a W2k8 for PXE?

    Hello,
    could anyone give me a hint, how to tell my netware DHCP to use a Windows Server 2008 R2 running Acronis with PXE Server?
    Actual Situation:
    Netware 6.5 Sp8 Server with ZENWORKS in Cluster mode
    Netware DHCP Server
    ZEN7 SP1 Imaging
    --> works fine so far, and no problem in other subnets, IP-helper are configured in the switches
    New Situation:
    Netware 6.5 Sp8 Server with ZENWORKS in Cluster mode
    Netware DHCP Server
    Windows Server 2008 R2 running Acronis Snap Deploy with PXE-Server - in future may be a clean Windows Deployment service without Acronis
    --> that would be nice :)
    I found serveral ini-files (dts.ini, pdhcp.ini, tftp.ini) where I configured the new IP-Address of the W2k8 PXE Server.
    Now:
    The Client gets its correct IP-Address from Netware DHCP
    but after that the following messages:
    Auto-select:
    ZENworks Boot
    Boot Server IP: --.--.--.-- (the correct one configured in the ini-files!)
    TFTP.
    PXE-T02:
    PXE-E3C: TFTP Error - Access Violation
    PXE-M0F: Exiting Intel Boot Agent
    Any ideas?
    Thanks a lot.

    Originally Posted by magic31
    You don't have to configure anything specifically in DHCP to work with PXE. Possibly just unconfigure an option that was set for the previos setup; One thing to check (and remove) is option 60 for the PXE Client option, if this is configured with the DHCP subnet options. This option should only be set if both DHCP and PXE services are on the same server (as is probably the case in your situation as I'm guessing both DHCP as also PXE get loaded in the same cluster resource script).
    For subnets serviced outside of the subnet your DHCP server is running in, you will need to configure multiple ip helpers: one that points to the DHCP server and one points to the PXE server so those requests on other subnets get serviced correctly.
    To get things running it's probably easier to try to get this to work on the subnet your DHCP and PXE server are running in (so you are not also having to deal with the ip helper setup just yet). If that works, then expand you configuration to different subnets & ip helpers.
    Hope that helps,
    Willem
    As a ps and for clarification, don't load the PDHCP on any of the NetWare servers... just have the PXE PDHCP service running on the Windows server.
    The PDHCP/PXE service for ZenWorks won't understand/work with the Arconis one and visa versa.
    -Willem

  • HT1911 what to do when unable to access itunes store? I tried logging in but it tells me I'm not connected to the internet.

    what to do when unable to access itunes store? I tried logging in but it tells me I'm not connected to the internet.

    You cannot use the iTunes Store of any country other than one one in which you live and have a payment method. If the Sound Cloud app is no longer available in your country's iTunes Store, then that app will not be available to you. Contact the developer and ask if they have any plans to re-release it in your country; it may have been removed due to a problem or pending update and will be reinstated at some point.
    Regards.

  • How to tell what template is applied to a Framemaker file?

    I'm new to Framemaker...so please excuse if this is a silly question.
    We are trying to figure out how to tell what template has been applied to a Framemaker file. We are using the structured view in Framemaker 7.2.
    Perhaps I am thinking too much like a Microsoft Word user -- in which case I can look at what template has been applied to a document.
    Does Framemaker work the same way -- or are templates associated with Framemaker files in some other way?
    Thank you --
    J-Ha

    J-Ha,
    FrameMaker works differently. Strictly speaking, there is no way to tell which template was used last. A FrameMaker template is just a FrameMaker document which you call "template". Using File > Import > Formats you can import all or selected formats from one document to another. The main benefit: Each document is completely self-contained and does not require any other document.
    Many solutions I know of include a user variable named something like "template-version" into their template document or put the version information on one of the reference pages. When importing user variables or reference pages, this can tell you version imported last.
    - Michael

Maybe you are looking for

  • Acrobat XI Pro not listed under applications after installation

    Mac OS: 10.9.1 Processor: Intel Core i7 2.3GHz After installed Acrobat XI Pro, it is displayed in the Creative Cloud Desktop as "Up to date" But not listed under "Applications" folder. Could not find Acrobat XI Pro anywhere in the computer. When you

  • HTMLDB 1.6 Multiple Image Directories

    We want to be able to use two different image directories for htmldb. We created a second directory and modified the marvel.conf file as show below (basically copying the Alias for i and creating i2). The images2 directory does exist and does have th

  • Can't copy images to desktop ("Item busy")

    I'm trying to copy photos from an album in iPhoto 5 to the desktop, but I can't because I get the following error message: The selected items cannot all be put in the same location because at least one of them named "DSC00003.JPG" is busy I'm able to

  • Help withe setting up a database

    Hello There, I come for some help, I want to be able to set up a database on my computer but I dount know how to I am on windows XP could someone guide me though what I need and what to do please. Many thanks Lol

  • Verizon, please be like AT&T!

    Now that AT&T has annouced throttling of grandfathered, unlimited data plans, I've already seen speculation that Verizon will do the same.  I intentionally switched over to Verizon on June 30, so we could get grandfathered in on unlimited data.  So f