Code Reviewer for OAF Code
Hi All,
Do we have a code review tool specially for OAF code something like JSTYLE is for java.
Is there something specific to OAF or JSTYLE is ok to sue for OAF Code.
Thanks,
Arati
Is there any tool for security review too for OAF
Similar Messages
-
Customizing Code Templates for the Code Editor
Our customer wants to have a standerd code edit environment for developers using Jdveloper. Therefore, there is a need to customize the Code Template for the Code Editor. The question is once after it is customized, whether it is possible to export the template to the Jdveloper setup for all the developers, and if yes, then how to? Thanks!
Just distribute the java.tpl file from the <jdev_install>\jdev\system9.0.x.x directory. That should do the trick.
Sascha -
BAdI code review - for perfomance improvements
Hi,
I've a BAdI implementation to enhance a BW datasource which will extract additional fields for the datasource. The pseudo code for the extractor is as below. Can some one please review and let me know the opportunities (which I'm sure there will be) to improve the performance of the BAdI?
Thanks a lot.
Regards,
Sri.
Pseudo Code:
loop at ct_data assigning <ls_data>.
case <on_a_field>.
when <value_1>.
if <condition1>.
elseif<condition2>.
elseif<condition3>.
endif.
when <value_2>.
<execute a function module by exporting value_2>
if <condition1>.
elseif<condition2>.
elseif<condition3>.
endif.
endcase.
<extraction logic for other fields continue>
endloop.Hi
Two suggestions:
First, use tcode ST05 to do traces and diagnose the bottleneck.
Second, tcode ABAP_TRACE, go to tips and tricks, and in internal tables / using the assigning command see samples and run them to evaluate the times. But in my opinion you are doing well.
I hope this helps you
Regards
Eduardo -
Code review for new coldfusion developer
Hello all, my name's Oscar, and I've just created a little coldfusion framework for work to help us with some of our "legacy" systems (which all use a cms that bakes it's output.) And as I'm fairly new to coldfusion I wanted to see if you would mind quickly casting your eyes over what I've got and helping me improve my work with some of your hard earned experience.
Everything I've got I've open sourced, and I've written an example application / readme with details about how to install it incase you want to try it out on your own system. I've a background in ruby, python, and php; so I've borrowed some conventions from frameworks like django and rails as I was building this, as well as dipping heavily into coldbox to get a better understanding of how to structure my cfml code.
Here's the main repository for the project: https://github.com/binaryvision/pistachio.Hello all, my name's Oscar, and I've just created a little coldfusion framework for work to help us with some of our "legacy" systems (which all use a cms that bakes it's output.) And as I'm fairly new to coldfusion I wanted to see if you would mind quickly casting your eyes over what I've got and helping me improve my work with some of your hard earned experience.
Everything I've got I've open sourced, and I've written an example application / readme with details about how to install it incase you want to try it out on your own system. I've a background in ruby, python, and php; so I've borrowed some conventions from frameworks like django and rails as I was building this, as well as dipping heavily into coldbox to get a better understanding of how to structure my cfml code.
Here's the main repository for the project: https://github.com/binaryvision/pistachio. -
A new dilema, code review for newbie
OK, now my dilema is taking input values from an applet and working them into my methods. I have read several tutorials, but I'm not finding any help. So far, I have written this code which does not complie (as expected). My methods seem solid, but my integration of the methods into an applet is far from decent. I have a feeling that I'm just going in circles here.
package membership;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.String;
public class MemberFee extends JApplet
String typeMem;
char memType;
int numKids,
numYears;
double memFee,
kFee,
iFee,
fFee,
totalFee;
boolean endProgram = false;
//DecimalFormat twoDigit = new DecimalFormat("0.00"); //page 171-172 in New Dietel Book
public void init ()
while (!typeMem == 'Q')
memType = JOptionPane.showInputDialog("Enter Type of Member: ");
typeMem = memType.charAt (0);
typeMem = Character.toUpperCase(typeMem);
if (typeMem == 'F')
numYears = JOptionPane.showInputDialog("Enter number of years:");
if(numYears<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
numKids = JOptionPane.showInputDialog("Enter number of kids:");
if(numKids<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
else
memFee = fFee;
JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumKids: " + (numKids) +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE);
else if (typeMem =='I')
numYears = JOptionPane.showInputDialog("Enter number of years:");
if(numYears<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
else
memFee = iFee;
JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE);
JOptionPane.showMessageDialog(null,JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumKids: " + (numKids) +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE));
}//end if
}//end while
//begin methods
//fee for individual method
public static double iFee(int numYears)
double memFee;
if (numYears >= 2)
memFee = 1500.00;
else
memFee = 1900.00;
return memFee;
// end individual method
//fees for family method
public static double fFee (int numYears, int numKids)
double memFee;
double kFee;
if (numKids <= 2)
kFee = 0.00 ;
else
kFee = (numKids * 250.00);
//end kids calculation
if (numYears >= 2)
memFee =2500.00;
else
memFee= 3000.00 + kFee;
return memFee;
//end family method
This is what I think my problems are:
1. I am confusing java application commands with java applet commands (shouldn't they be similar?)
2. Can applets even allow for pop up dialog boxes?
This problem keeps me up at night. Any help would be great.
THanks,Hi,
probably you need learn more Java and start with small examples. I kind of fixed the compilation errors, but I don't know what the output might be. good luck.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.String;
public class MemberFee extends JApplet
String typeMem;
String memType;
int numKids,
numYears;
double memFee,
kFee,
iFee,
fFee,
totalFee;
boolean endProgram = false;
//DecimalFormat twoDigit = new DecimalFormat("0.00"); //page 171-172 in New Dietel Book
public void init ()
while (!typeMem.equals("Q"))
memType = JOptionPane.showInputDialog("Enter Type of Member: ");
typeMem = memType.substring(0,0);
typeMem = typeMem.toUpperCase();
if (typeMem.equals("F"))
numYears = Integer.parseInt(JOptionPane.showInputDialog("Enter number of years:"));
if(numYears<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
numKids = Integer.parseInt(JOptionPane.showInputDialog("Enter number of kids:"));
if(numKids<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
else
memFee = fFee;
JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumKids: " + (numKids) +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE);
else if (typeMem.equals("I"))
numYears = Integer.parseInt(JOptionPane.showInputDialog("Enter number of years:"));
if(numYears<0)
JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
else
memFee = iFee;
JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE);
JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
"\nnumKids: " + (numKids) +
"\nnumYears: " + (numYears),
"Total", JOptionPane.PLAIN_MESSAGE);
}//end if
}//end while
//begin methods
//fee for individual method
public static double iFee(int numYears)
double memFee;
if (numYears >= 2)
memFee = 1500.00;
else
memFee = 1900.00;
return memFee;
// end individual method
//fees for family method
public static double fFee (int numYears, int numKids)
double memFee;
double kFee;
if (numKids <= 2)
kFee = 0.00 ;
else
kFee = (numKids * 250.00);
//end kids calculation
if (numYears >= 2)
memFee =2500.00;
else
memFee= 3000.00 + kFee;
return memFee;
//end family method -
How to rewrite iterator code to for/in code ?
I am trying to change my iterator code to code using the for/in construct from Java 1.5
in the howManyMessages() method I am trying to convert:
Iterator it = messages.iterator();
while(it.hasNext()) {
MailItem mess = (MailItem) it.next();
if(mess.getTo().equals(who)) {
count++;
Should this become:
for(Object mess: message)
if(get(mess).getTo().equals(who)
count++; and how about the getNextMailItem() method ? it has a it.remove() statement. Is it impossible to use the for/in construct
where there is a remove() method ?
Thank you in advance. Below is the coding
import java.util.Vector;
import java.util.Iterator;
/* A simple model of a mail server. The server is able to receive
* messages for storage, and deliver them to clients on demand.
* @author David J. Barnes and Michael Kolling @version 2001.05.30 */
public class MailServer
// Storage for the arbitrary number of messages to be stored on the server.
private Vector messages;
// Construct a mail server.
public MailServer()
messages = new Vector();
/* @return How many messages are waiting for the given user.
* @param who The user to check for. */
public int howManyMessages(String who)
int count = 0;
Iterator it = messages.iterator();
while(it.hasNext()) {
MailItem mess = (MailItem) it.next();
if(mess.getTo().equals(who)) {
count++;
return count;
/* Return the next message for who. Return null if there
* are none.
* @param who The user requesting their next message.*/
public MailItem getNextMailItem(String who)
Iterator it = messages.iterator();
while(it.hasNext())
MailItem mess = (MailItem) it.next();
if(mess.getTo().equals(who))
it.remove();
return mess;
return null;
/* Add the given message to the message list.
* @param item The mail item to be stored on the server.*/
public void post(MailItem item)
messages.add(item);
/* A class to model a simple mail item. The item has sender and recipient
* addresses and a message string.
* @author David J. Barnes and Michael Kolling
* @version 2001.05.30 */
public class MailItem
// The sender of the item.
private String from;
// The intended recipient.
private String to;
// The text of the message.
private String message;
/* Create a mail item from sender to the given recipient,
* containing the given message.
* @param from The sender of this item.
* @param to The intended recipient of this item.
* @param message The text of the message to be sent. */
public MailItem(String from, String to, String message)
this.from = from;
this.to = to;
this.message = message;
//Return The sender of this message.
public String getFrom()
return from;
// Return The intended recipient of this message.
public String getTo()
return to;
//Return The text of the message.
public String getMessage()
return message;
// Print this mail message to the text terminal.
public void print()
System.out.println("From: " + from);
System.out.println("To: " + to);
System.out.println();
System.out.println("Message: " + message);
* A class to model a simple email client. The client is run by a
* particular user, and sends and retrieves mail via a particular server.
* @author David J. Barnes and Michael Kolling
* @version 2001.05.30
public class MailClient
// The server used for sending and receiving.
private MailServer server;
// The user running this client.
private String user;
* Create a mail client run by user and attached to the given server.
public MailClient(MailServer server, String user)
this.server = server;
this.user = user;
* Return the next mail item (if any) for this user.
public MailItem getNextMailItem()
return server.getNextMailItem(user);
* Print the next mail item (if any) for this user to the text
* terminal.
public void printNextMailItem()
MailItem item = server.getNextMailItem(user);
if(item == null) {
System.out.println("No new mail.");
else {
item.print();
* Send the given message to the given recipient via
* the attached mail server.
* @param to The intended recipient.
* @param mess A fully prepared message to be sent.
public void sendMessage(String to, String message)
MailItem mess = new MailItem(user, to, message);
server.post(mess);
//In this program we learn about the Vector class and the iterator()
//we step into the printNewMailItem() method of the MailClient class with bluej
//we observe the debugger and watch a messege appear.
public class Try_e_mail
public static void main(String[] args)
MailServer myMailServer = new MailServer();
MailClient Julie = new MailClient(myMailServer, "Julie");
MailClient Sam = new MailClient(myMailServer, "Sam");
MailItem messageMonday = new MailItem("Sam", "Julie", "I really enjoy studying Java !");
MailItem messageTuesday = new MailItem("Julie", "Sam", "Computer Science is an important challenge !");
MailItem messageWednesday = new MailItem("Sam", "Julie", "It is alot more rewarding than watching TV !");
System.out.println();
messageMonday.print();
System.out.println();
messageTuesday.print();
System.out.println();
messageWednesday.print();
//The output I received is:
//From: Sam
//To: Julie
//Message: I really enjoy studying Java !
//From: Julie
//To: Sam
//Message: Computer Science is an important challenge !
//From: Sam
//To: Julie
//Message: It is alot more rewarding than watching TV !The for/in coding that worked was for a non-generic collection.
So I guess that means that a Vector is a non-generic collection.
What does non-generic mean ?
Thank you in advance
//for non-generic collections
for(Object obj : messages)
MailItem mess = (MailItem)obj;
if ( mess.getTo().equals(who))
count++;
//for Generic collections
/* for(MailItem mess: messages)
if(mess.getTo().equals(who))
count++; */ -
Restartability in code - looking for sample code
Hi - does anyone have sample code that includes checkpoints and savepoints and has restart logic built in?
Since there haven't been any replies here, maybe a member
of the general database forum at:
http://forums.oracle.com/forums/index.jsp?cat=18
will be able to help.
-- CJ -
Code Review Tools for Enhancements
Friends,
I have to perform code review for enhancement objects. I am aware of tools like Code Inspector (SCI Tcode) and SE30. These tools can be used for reports, function modules.
I would like to know if these tools can be used for enhancements or are there some other tools available?
Thanks and Regards.Hi
can you work on :
1) ST05 Performance Trace
2) ST03G Global Statistical Records
STAD Statistical Records
3) ST30 Global Performance Analysis
thnak you
srinu -
Oracle Apps secure code review
Is any documentation available (either Oracle or third party based) to guide secure code reviews for Oracle Apps (or more specifically, Oracle Application Framework)?
I'm aware of the usual sql injection bad practices (as related to JDBC and PLSQL). I'm curious about API abuse, as related to:
- cross-site scripting concerns
- client-side trust issues (e.g., hidden field values)
- improper or inconsistent input validation
- improper error handling
- improper session management
- inappropriate access control
Thanks.Thanks... I looked at that and didn't think it was all in there, but I looked again after I got your reply and it appears to be what we are looking for (at least a starting point).
-
Code Review:: ADF BC applications
Hi,
We would like to know if there's any open source software available for code reviews of ADF applications and how to effectively use to for ADF BC applications?
1) Am I moving in right direction while exploring PMD and Checkstyle? Are these the right candidates for setting automated code reviews for ADF applications?
Is there a specific software recommendation by the forum members which can help me achieve this goal.
2) Can CodeCoach and Audit features available in JDeveloper help me in this?
3) Will I have to necessary create 'Custom Rules' for tasks like validating EO classes are not directly referred in the Controller? Are there some pre-built rule-sets available on this front?
4) Any other suggestions for ensuring better/faster code reviews not necessarily replacing the manual peer review process but reducing the unnecessary headaches that can be fixed by freely available software
SidI started using ADFLogger and added some log statements. When I ran my application in JDeveloper in Embeded OC4J server, these log statements are appearing in JDeveloper server log window. After I deployed this application to Oracle Application Server, these statements are not appearing in the application.log file and also not in any file. Am I missing any configuration setting? The log current level is INFO and I do have few INFO statements, SEVERE statements in my code. Thanks in advance.
-
Code Review tool of Angular Js ??
Hi All,
I need to do code review for all of my Angular JS files
Please let me know if any tool is available for doing review of my JS files
I am aware of ReSharper tool and planning to use the same for my requirement.
Thanks in Advance
-Jiniv ThakkarHi Zpittman,
What is you said ‘Code Review Tool’?
I assume that you meant the Code Review feature in TFS. I tried it in Visual Studio 2013 with update 4 and TFS 2013 with Update 4, the whitespace was detected and the code review see it as a difference.
If you don’t get the same result with me using VS and TFS, please upgrade your VS and TFS to the latest update.
If the issue still exists, please
reset your VS settings through Tools->Import and Export settings->Reset all
settings->…. and repair your VS.
If code review tool is a third-party tool or a third-party VS/TFS add-in, the official support of this tool can be a better place to resolve your issue.
If I misunderstood anything, please feel free to come back.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
QM notification: No text can be displayed for the code
Hi,
At the moment I want to create or change a quality notification and enter a coding, it is not possible to click on the long-text description (see error).
Although the long text is definitely maintained.
Is some customizing missing?
Thanks
LauraHello Laura,
I am sure Long text must be there, You will get information in this icon if you have maintained Long text for CODE (Not for a Code group).
Amol. -
How to activate Compny code validation ( cross company code)
*Hi ,*
*We migrated classic GL to New GL before one month Now*
*I am rollout new company code, after completed all configuration I found uncopmplit configuration of company code validation is not active in controlling area config ( Transaction Code- OKKP) , which is related to cross company code ( Indicator for company code validation )*
*can anybody provide solution to activate company code validation*
Thank ,
JeetendraHi ,
I want to activate company code validation for cross company code still it is inactive
without activation I can not use cross company code for costing
Edited by: jitu konde on Jun 15, 2011 9:38 AM -
Are there any good tool for checking security risks, Code review, memory leakages for SharePoint projects?
I found one such tool "Fortify" in the below link. Are there any such kind of tools available which supports SharePoint?
Reference: http://www.securityresearch.at/en/development/fortify/
Amalaraja Fernando,
SharePoint Architect
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.Hi Amalaraja Fernando,
I'm not sure that there is one more tool that combines all these features. But you may take a look at these solutions:
SharePoint diagnostic manager
SharePoint enterprise manager
What is SPCop SharePoint Code Analysis?
Dmitry
Lightning Tools Check
out our SharePoint tools and web parts |
Lightning Tools Blog | Мой Блог -
Looking for Code Review Resources
We have completed a complex project using jakarta struts and are in beta testing at the moment.
Would like to have someone review our code but we have not been able to find expierienced developers in our (physical) area.
Does anyone have suggestions on where I could look to find a qualified individual for independent code review.
Thank you in advance for your suggestions.Just post it here. Some of our fine reviewers will be happy to serve you.
P.S. Be sure to say that it's homework.
Maybe you are looking for
-
Import Outlook 2011 for MAC database from a security copy
After many years using Outlook for Windows, I bought a MAC Book Pro and Outlook 2011 for MAC. I use it for mail, contacts, notes and calendar and yesterday I had a problem. Since then, when I click the Outlook icon what appear is the system completel
-
How do I maintain a single iTunes library for two separate iMac user accounts?
How do I maintain a single iTunes library for two separate iMac user accounts?...without having to manually do something every download?
-
hello what do I do now ??
-
Transient vo attribute binding returning null
i have a editable form with multiple input text components which i created by dropping a collection on page. now i want to add more fields which are transient and read only. i added two transient attributes in VO with Updatable to Never and queryable
-
for some reason on my laptop acrobat pro will not open at all. reader works fine. i have windows 7 on my computer. i read alot of different blogs about this but nothing works. i removed it from my computer and reinstalled it but it wont even load