List of usage examples for java.lang Object Object
@HotSpotIntrinsicCandidate
public Object()
From source file:org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests.java
public void testEnoughFailuresToCauseProblem() throws Exception { final MockHttpServletRequest request = new MockHttpServletRequest(); final ModelAndView modelAndView = new ModelAndView("casLoginView"); request.setMethod("POST"); request.setRemoteAddr("111.111.111.111"); for (int i = 0; i < CONST_FAILURE_THRESHHOLD + 1; i++) { this.adapter.postHandle(request, new MockHttpServletResponse(), new Object(), modelAndView); }//from ww w. j a v a 2 s. c o m assertFalse(this.adapter.preHandle(request, new MockHttpServletResponse(), new Object())); }
From source file:com.job.portal.dao.JobsDAO.java
public JSONObject getJobDetails(String jobId) { JSONObject obj = null;/*from ww w .j a va 2 s . c om*/ try { String query = "select jm.jobId,jm.datePosted,jm.description,jm.experience,jm.functionalArea,jm.keywords," + "jm.location,jm.qualificationRequired,jm.salary,jm.title,jm.vacancies,jm.companyId," + "cm.companyName,ud.`name`,ud.userId " + "from job_master jm join company_master cm " + "on jm.companyId=cm.companyID " + "join user_details ud on " + "ud.userId=cm.userId " + "where jm.jobId=?"; Object[] arr = new Object[1]; arr[0] = jobId; obj = fetchOne(query, arr); } catch (Exception e) { LogOut.log.error("In " + new Object() { }.getClass().getEnclosingClass().getName() + "." + new Object() { }.getClass().getEnclosingMethod().getName() + " " + e); } finally { return obj; } }
From source file:dk.statsbiblioteket.doms.radiotv.extractor.transcoder.ProcessorChainThreadPool.java
/** * Singleton.//from ww w. ja v a2 s . c o m */ private ProcessorChainThreadPool(ServletConfig config) { theQueue = new LinkedBlockingQueue<ProcessorChainThread>(); //theQueue = new PriorityBlockingQueue(1000, new ThreadComparator()); maxActiveProcesses = Integer.parseInt(Util.getInitParameter(config, Constants.MAX_ACTIVE_PROCESSING)); log.info("Creating thread pool with max active processes = " + maxActiveProcesses); thePool = new GenericObjectPool(new BasePoolableObjectFactory() { @Override public Object makeObject() throws Exception { return new Object(); } }, maxActiveProcesses); }
From source file:com.job.portal.manager.JobsManager.java
public boolean addJob(HttpServletRequest request) { boolean flag = false; try {// w ww . jav a2 s .co m JobMaster jMast = new JobMaster(); jMast.setDatePosted(new Date()); if (request.getParameter("description") != null) { jMast.setDescription(request.getParameter("description")); } if (request.getParameter("experience") != null) { jMast.setExperience(request.getParameter("experience")); } if (request.getParameter("functionalArea") != null) { jMast.setFunctionalArea(request.getParameter("functionalArea")); } if (request.getParameter("keywords") != null) { jMast.setDescription(request.getParameter("keywords")); } if (request.getParameter("location") != null) { jMast.setDescription(request.getParameter("location")); } if (request.getParameter("qualificationRequired") != null) { jMast.setQualificationRequired(request.getParameter("qualificationRequired")); } if (request.getParameter("salary") != null) { jMast.setSalary(request.getParameter("salary")); } if (request.getParameter("title") != null) { jMast.setTitle(request.getParameter("title")); } if (request.getParameter("vacancy") != null) { jMast.setVacancies(request.getParameter("vacancy")); } if (request.getParameter("companyId") != null) { jMast.setCompanymaster(Integer.parseInt(request.getParameter("companyId"))); } flag = jd.addJob(jMast); } catch (Exception e) { LogOut.log.error("In " + new Object() { }.getClass().getEnclosingClass().getName() + "." + new Object() { }.getClass().getEnclosingMethod().getName() + " " + e); } finally { return flag; } }
From source file:com.cognifide.actions.msg.push.passive.PushServlet.java
@Activate public void activate() { connectionHold = new Object(); }
From source file:com.intuit.tank.vm.settings.DefaultUserCpTest.java
/** * Run the boolean equals(Object) method test. * //from w ww . j a va 2 s .com * @throws Exception * * @generatedBy CodePro at 9/3/14 3:41 PM */ @Test public void testEquals_1() throws Exception { DefaultUser fixture = new DefaultUser(new HierarchicalConfiguration()); Object obj = new Object(); boolean result = fixture.equals(obj); assertEquals(false, result); }
From source file:io.cloudslang.lang.tools.build.tester.parallel.report.ThreadSafeRunTestResults.java
public ThreadSafeRunTestResults() { this.passedTests = new ConcurrentHashMap<>(); this.failedTests = new ConcurrentHashMap<>(); this.skippedTests = new ConcurrentHashMap<>(); this.coveredExecutables = new TreeSet<>(); this.uncoveredExecutables = new TreeSet<>(); this.exceptions = new ConcurrentLinkedDeque<>(); this.lockCoveredExecutables = new Object(); this.lockUncoveredExecutables = new Object(); }
From source file:com.job.portal.manager.JobApplicationsManager.java
public JSONArray getAppliedJobs(HttpServletRequest request) { JSONArray arr = new JSONArray(); JSONObject obj = null;//from w w w . jav a2 s . c o m JobApplicationsDAO jad = new JobApplicationsDAO(); try { HttpSession sess = request.getSession(false); obj = (JSONObject) sess.getAttribute("user"); if (obj.has("userId")) { arr = jad.getAppliedJobs(obj.getString("userId")); } else { obj.put("msg", "Please log in to continue"); } } catch (Exception e) { LogOut.log.error("In " + new Object() { }.getClass().getEnclosingClass().getName() + "." + new Object() { }.getClass().getEnclosingMethod().getName() + " " + e); } finally { return arr; } }
From source file:py.una.pol.karaku.test.test.StringUtilsTest.java
@Test public void testIsValid() { assertFalse(StringUtils.isValid(" ")); assertFalse(StringUtils.isValid(NULL)); assertTrue(StringUtils.isValid("HOLA")); assertFalse(StringUtils.isValid(" a ", NULL)); assertFalse(StringUtils.isValid(" a ", " ")); assertTrue(StringUtils.isValid(" a ", " b ")); assertFalse(StringUtils.isValid((Object) null)); assertTrue(StringUtils.isValid((Object) "z")); assertTrue(StringUtils.isValid(new Object())); assertFalse(StringUtils.isValid((String[]) null)); assertFalse(StringUtils.isValid(new String[] {})); }
From source file:net.sf.morph.reflect.reflectors.DynaBeanReflectorTestCase.java
protected List createNonReflectableObjects() { List beans = new ArrayList(); beans.add(new ArrayList()); beans.add(new HashSet()); beans.add(new Object[0]); beans.add(new BigDecimal(3)); beans.add(new Object()); return beans; }